wood burning stoves*
The moose likes XML and Related Technologies and the fly likes XSLT instruction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSLT instruction" Watch "XSLT instruction" New topic
Author

XSLT instruction

Preet Kaur
Greenhorn

Joined: Feb 03, 2008
Posts: 1
Hi,
could you explain the explain the following XSLT instructions
Part 1
<xsl:template match="library//book">
<xsl:if test="@name">
<xsl:value-of select="@name"/>
</xsl:if>
<xsl:value-of select="author"/>
</xsl:template>

Part 2
<xsl:template match="company">
<xsl:value-of select="staff[1]/first.name"/>
</xsl:template>
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

What do you want us to explain?
If you are new to XSLT, This tutorial may be a good start.


apigee, a better way to API!
 
jQuery in Action, 2nd edition
 
subject: XSLT instruction
 
Similar Threads
Data Structure for logic tree
Testing if the parameter passed is empty..Help pls!
Getting my HTML output to backspace one character
Concatenating Nodes into CSV format
XML Transformation