Subject: Re: [xsl] Character from numeric code? double->integer cast? From: Christian Wittern <wittern@xxxxxxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 29 Jun 2005 20:18:54 +0900 |
"Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx> writes: > Use xs:integer() instead of number() and add the namespace: > > xmlns:xs="http://www.w3.org/2001/XMLSchema" > > Your new variable definition should look like: > > <xsl:variable name="cb" > select="codepoints-to-string(xs:integer(substring('#CB00001', 4)) + > 983040)"/> > ^^^^^^^^^^ Thanks Andrew, it works like a charm! Chris -- Christian Wittern Institute for Research in Humanities, Kyoto University 47 Higashiogura-cho, Kitashirakawa, Sakyo-ku, Kyoto 606-8265, JAPAN
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Character from numeric co, Andrew Welch | Thread | [xsl] problems with copying duplica, Rahil Qamar |
Re: [xsl] problems with copying dup, Mukul Gandhi | Date | Re: [xsl] problems with copying dup, David Carlisle |
Month |