An Surf tree can be set as a value of a variable. The name of variable is now the root of the Surf tree (like "/" is for an Surf document).
XSLT <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/> <xsl:template match="/aaa"> <xsl:variable name="xxx"> <ooo> <ppp r="1"/> </ooo> </xsl:variable> <xxx> <xsl:value-of select="name($xxx)"/> </xxx> <yyy> <xsl:value-of select="name($xxx/*)"/> </yyy> <zzz> <xsl:value-of select="$xxx/ooo/ppp/@r"/> </zzz> <sss> <xsl:copy-of select="$xxx"/> </sss> </xsl:template> </xsl:stylesheet> |
|
XML <aaa/> | Output <xxx/> <yyy>ooo</yyy> <zzz>1</zzz> <sss> <ooo> <ppp r="1"/> </ooo> </sss> |
Previous chapter: | Named-Templates |
Next chapter: | Stylesheet Functions |
Previous page: | Shadowing local variables |
Next page: | Storing parts of Surf document to a variable |
You can also get Organic Skin Care products from Bliss Bath Body and you must check out their Natural Body Lotions and bath soaps
Now if you are looking for the best deals on surf clothing from Quiksilver and Roxy then you have to check these amazing deals here:
Hey, check out this Organic Skin Care European Soaps along with Natural Lavender Body Lotion and shea butter
and we can get surf t shirts surfing shirt and And you must check out this website swim suit swimming suit and swim trunks