[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Jimenez, Luis wrote:
Note that '>' and '<' with XSLT 1.0 work only on numbers so your '500' is converted the the number 500 anyway, meaning you could directly use
<xsl:if test="$id > 500">
I think you simply want to change the above to
<xsl:apply-templates select="@* | node()"/>
to ensure not only the "picking" child elements but others like the "detfac" are processed as well.
--
Re: [xsl] Full output all nodes depending on a conditional
Subject: Re: [xsl] Full output all nodes depending on a conditional From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Sun, 14 Nov 2010 18:21:06 +0100 |
Jimenez, Luis wrote:
<xsl:template match="pd"> <xsl:copy> <xsl:variable name="id" select="translate(detfac/pie/linea3,',','')"/> <xsl:if test="$id> '500'">
Note that '>' and '<' with XSLT 1.0 work only on numbers so your '500' is converted the the number 500 anyway, meaning you could directly use
<xsl:if test="$id > 500">
<xsl:apply-templates select="@* | picking"/>
I think you simply want to change the above to
<xsl:apply-templates select="@* | node()"/>
to ensure not only the "picking" child elements but others like the "detfac" are processed as well.
--
Martin Honnen http://msmvps.com/blogs/martin_honnen/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Full output all nodes dependi, Jimenez, Luis | Thread | RE: [xsl] Full output all nodes dep, Jimenez, Luis |
[xsl] Full output all nodes dependi, Jimenez, Luis | Date | RE: [xsl] Full output all nodes dep, Jimenez, Luis |
Month |
Keywords