|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: value-of or apply-templates: What is "best"?
I think below examples are self explanatory.
xsl:apply-templates: defines a set of nodes to be processed, and causes the system to process them by selecting an appropriate template Example: <para>xxxxx<b>bold text</b>xxxx</para> <xsl:template match="para"> <p><xsl:apply templates/></p> </xsl:templates> Result: <p>xxxxx<b>bold text</b>xxxx</p> xsl:value-of: writes the string value of an expression to the result tree. <xsl:template match="para"> <p><xsl:value-of select="."></p> </xsl:templates> Result: <p>xxxxxbold textxxxx</p>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|







