*
The moose likes XML and Related Technologies and the fly likes xsl rules Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xsl rules" Watch "xsl rules" New topic
Author

xsl rules

nirjari patel
Ranch Hand

Joined: Apr 23, 2009
Posts: 363

Following rules are applied to this xml document


what does the "apply-templates" do ? How is it different from <xsl:value-of select=""> ? If I place <xsl:value-of select=""> instead of <xsl:apply-templates/> , I will get the same result. What templates are applied when I use <xsl:apply-templates > ? If I dont use, <xsl:apply-templates > in the above example , the will it just <B> be applied after <bold> ?

I have done good enough reading and then I posted the question here. So please dont point to any article

thanks
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

It applies the template rules for each child of the context node.
 
Don't get me started about those stupid light bulbs.
 
subject: xsl rules
 
Similar Threads
XML/XSL Transformation to HTML problem
xsl templates
why is the output not displayed
How to handle nested html tags in XSL?
what is template rule in xsl ?