Altova Mailing List Archives

Re: XSLT question related to and

From: Martin Honnen <mahotrash@-----.-->
Date: 11/4/2004 4:42:00 PM

Vijay singh wrote:

> XML file :
> <score id="1">
> <film>A Little Princess</film>
> <composer>Patrick Doyle</composer>
> <year>1995</year>
> <grade>
> 	   <mygrade>100</mygrade>
> 	   <vijay>50</vijay>
> </grade>
> </score>

> XSL file 2 :
> <xsl:stylesheet xmlns:xsl=""
> version="1.0">
> <xsl:template match="grade">
> <xsl:apply-templates />
> </xsl:template>
> </xsl:stylesheet>
> Output 2:
> <?xml version="1.0" encoding="utf-8"?>
> A Little Princess
> Patrick Doyle
> 1995
> 	   100
> 	   50
> Question is why does the ouptput 2 showed top three lines, when I only
> matched "grade".

There are built-in templates to recursively process the document and to 
output text nodes, see


	Martin Honnen


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.