|
Subject: [xsl] comparisons between strings have changed since XPath 1.0 warning From: TGolshan@xxxxxxxxxxxx Date: Tue, 4 Oct 2005 13:33:13 -0700 |
Hello,
I receive the below error message when I try to compile the below XML. I
am using saxon7 and can trace my error to
<xsl:when test="$webs > '3'">
but I am not sure how to fix this. I found some info on the oasis list
site, but nothing in the mulberry archives.
Any help would be appreciated. Thanks in advance-troy
***********************Error********************************
Less-than and greater-than comparisons between strings have changed
since XPath 1.0
***********************XSL********************************
<xsl:if test="string-length(WebExtra) > 1">
<xsl:variable name="webs">
<xsl:number value="count(WebExtra)"/>
</xsl:variable>
<xsl:choose>
<xsl:when test="$webs > '3'">
<xsl:result-document href="WebExtra.html">
<xsl:for-each select="WebExtra">
<p><xsl:copy-of select="
ABSTOC"/></p>
</xsl:for-each>
</xsl:result-document>
<a href="WebExtra.html">
<img src="
/common/images/doi_bookmark.gif" width="18" height="20" alt="Web Extra"
class="hspace" border="0" align="absMiddle"/><xsl:value-of select="'Web
Extras'"/>
</a>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="WebExtra">
<p> <xsl:copy-of select="ABSTOC"/></p>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
************************XML*******************************
<Article>
<WebExtra>
<TITLE>My first title here</TITLE>
<ABSTOC>Web extra: Part I</ABSTOC>
</WebExtra>
<WebExtra>
<TITLE>My second title here</TITLE>
<ABSTOC>Web extra: Part II</ABSTOC>
</WebExtra>
<!--Can have anywhere from 0 to 100 web extras listed-->
</Article>
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] XML Input -> XML OR Text , Khorasani, Houman | Thread | RE: [xsl] comparisons between strin, Michael Kay |
| Re: [xsl] Obtaining xml node value , Jon Gorman | Date | Re: [xsl] Simple (external XML) int, knocte |
| Month |