This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 371

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: xsl rules
 
Similar Threads
How to handle nested html tags in XSL?
XML/XSL Transformation to HTML problem
xsl templates
why is the output not displayed
what is template rule in xsl ?