Here is xml file:

Code
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xslt" href="sample.xslt"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
here is the xslt file:

Code
<?xml version="1.0" encoding="utf-8"?>
<xslt:stylesheet version=“1.0” xmlns:xslt=“http://www.w3.org/1999/XSL/Transform”>
<!--xmlns:xslt的xslt可任意命名,如my,xs,etc-->
<xslt:template match="/">
<!-- here ‘match=‘/’’ is xpath expression-->
<html>
<body>
<div>
<xslt:value-of select=“note/to”/>
<!--here ‘note/to’ is xpath sentence-->
</div>
<div>
<xslt:value-of select="note/from"/>
</div>
</body>
</html>
</xslt:template>
</xslt:stylesheet>