R
R
Hello everybody.
I was sorting all my XML data with for-each and sort.
But there were few cases that I didn't want to sort my data.
so I added nosort attribute - if given and set to '1' don't sort.
I wrote this:
<xsl:for-each select="field">
<xsl:if test="not(../data/@nosort='1')">
<xsl:sort select="description"/>
</xsl:if>
<!-- the rest of the template here -->
</xsl:for-each>
but this XSLT returns me an error:
Warning: xsl:sort : improper use this should not be reached in
/home/xh/workspace/ERS_new/engine/classes/XML.inc.php on line 138
(paresed with PHP5 DOM)
how can I make my nosort attribute work?
thanks for any help
best regards
R
I was sorting all my XML data with for-each and sort.
But there were few cases that I didn't want to sort my data.
so I added nosort attribute - if given and set to '1' don't sort.
I wrote this:
<xsl:for-each select="field">
<xsl:if test="not(../data/@nosort='1')">
<xsl:sort select="description"/>
</xsl:if>
<!-- the rest of the template here -->
</xsl:for-each>
but this XSLT returns me an error:
Warning: xsl:sort : improper use this should not be reached in
/home/xh/workspace/ERS_new/engine/classes/XML.inc.php on line 138
(paresed with PHP5 DOM)
how can I make my nosort attribute work?
thanks for any help
best regards
R