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 DeveloperReceived on Tuesday, 28 January 2003 04:01:06 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:10 GMT