Subject: [xsl] Problem with base64encode.xsl From: Torsten Schassan <schassan@xxxxxx> Date: Fri, 18 Jul 2008 15:07:49 +0200 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, this is a question mainly to Mukul, maybe someone else can help as well: I have a question concerning Mukul's base64encode.xsl. I want to include it in another script in order to encode some text. I use Oxygen with Saxon 9B. Now I get the following error message: Arithmetic operator is not defined for arguments of types (xs:string, xs:double) URL: http://www.w3.org/TR/xpath20/#ERRXPTY0004 The error points to this line in <xsl:call-template name="binaryToDecimal">: <xsl:with-param name="sum" select="$sum + substring($binary,string-length($binary) ) * $power"/> I call the template from here: <xsl:for-each-group select="//settlement[ancestor::text[@xml:id]]" group-by="text()"> <xsl:variable name="ortAsBase64"> <xsl:call-template name="convertToBase64"> <xsl:with-param name="asciiString" select="current-grouping-key()"/> </xsl:call-template> </xsl:variable> [...] <a href="http://dtm.bbaw.de/HSA/{$ortAsBase64}.html"> [...] </xsl:for-each-group> Can you recognize where the fault may be or advice something else? Thanks and best wishes, Torsten - -- Torsten Schassan Herzog August Bibliothek, Postfach 1364, D-38299 Wolfenbuettel Tel.: +49-5331-808-130, schassan {at} hab.de http://www.hab.de; http://www.hab.de/forschung/projekte/weiss64.htm -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIgJWlq4nZEP2KS4QRAoKnAJwO89Hr9se8xpCakCuMNfGJWebtagCcCCFU NEFnGY8X36mb1rDalRgRZCY= =Kpex -----END PGP SIGNATURE-----
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[no subject], Unknown | Thread | Re: [xsl] Problem with base64encode, Michael Ludwig |
RE: [xsl] accessing the input XML's, Michael Kay | Date | Re: [xsl] Problem with base64encode, Michael Ludwig |
Month |