[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xml cells transformed in to a 2-d table, some tabl
> When using XSLT 1.0 I got various error messages with the > above syntax. > XPath error : Invalid expression > if (exists($ig)) then $ig/length else 0 > ^ Yes, sorry, I'm very out of practice with writing 1.0 code. You have to expand the XPath if()then ...else to an XSLT xsl:choose. The exists() function can often be replaced with boolean() or just omitted <xsl:choose> <xsl:when test="$ig"> <xsl:value-of select="$ig/length"/> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> or there's often a less verbose way, as you say here using string-length. Michael Kay http://www.saxonica.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|