- From: Donovan Thatcher <DonovanT@astrolabegroup.com>
- Date: Tue, 28 Jan 2003 10:55:47 +0200
- To: www-xsl-fo@w3.org
- Message-ID: <A573235B3B34D511A71500902760F14E965DDD@EXCHANGE>
Hi there
I'm struggling to understand why the evaluation
test=<"string-length($variable_name)" evaluates to 0, when the output I get
for the same variable (when calling it in <xsl:value-of select="$
variable_name"/> is 1006410 (i.e. NOT 0 in string-length!)
Below is a portion of my code in context :
<xsl:variable name="origID">
<xsl:value-of
Select="Statements/ClientStatements/StmtsClient/Client/original/ID"/>a
</xsl:variable>
<xsl:variable name="copyID">
<xsl:value-of
select="Statements/ClientStatements/StmtsClient/Client/copy/ID"/>
</xsl:variable>
<xsl:choose>
<!-- WHY WON'T THE CHECK BELOW EVALUATE CORRECTLY WHEN USING
VARIABLES origID AND copyID INSTEAD OF FULLY QUALIFIED NAMES
???
IE : string-length(copyID) EVALUATES TO ZERO WHEN copyID
ITSELF EVALUATED TO "1006410"
-->
<xsl:when test="(string-length(origID) = 0) and (string-length(copyID) =
0)">
<xsl:for-each
select="Statements/ClientStatements/StmtsClient/Client/Address/*">
<fo:block text-align="left" font-family="Garamond"
font-size="8pt" font-weight="normal">
<xsl:value-of select="."/>
</fo:block>
</xsl:for-each>
</xsl:when>
Any help would be highly appreciated.
Many Thanks
Donovan Thatcher
---------------------------
donovant@astrolabegroup.com <mailto:donovant@astrolabegroup.com>
Java Developer
Received on Tuesday, 28 January 2003 04:01:06 UTC