[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Fatbob wrote:
Well XSL does not display elements, it only processes them. If in your template for the Row element you do e.g.
<xsl:template match="Row">
<xsl:apply-templates select="Cell[position() = (1,2,3,6,7)"/>
</xsl:template>
<xsl:template match="Cell">
<!-- output what you want to output -->
</xsl:template>
then with XSLT 2.0 that should work to process only the listed Cell elements.
--
Re: [xsl] Need help skipping a child element
Subject: Re: [xsl] Need help skipping a child element From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Thu, 26 Mar 2009 17:47:49 +0100 |
Fatbob wrote:
Using XSL, I need to be able to remove (by this I mean or not display) certain child elements. For example I only want to display the 1st, 2nd, 3rd, 6th and 7th, and always those elements only.
Well XSL does not display elements, it only processes them. If in your template for the Row element you do e.g.
<xsl:template match="Row">
<xsl:apply-templates select="Cell[position() = (1,2,3,6,7)"/>
</xsl:template>
<xsl:template match="Cell">
<!-- output what you want to output -->
</xsl:template>
then with XSLT 2.0 that should work to process only the listed Cell elements.
--
Martin Honnen http://JavaScript.FAQTs.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Need help skipping a child el, Fatbob | Thread | Re: [xsl] Need help skipping a chil, Fatbob |
[xsl] Need help skipping a child el, Fatbob | Date | Re: [xsl] Need help skipping a chil, Fatbob |
Month |