Package: xsltproc
Version: 1.1.26-1
Severity: normal

$ cat test.xslt
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:param name='foo'/>
<xsl:template match='/'>
<root><xsl:value-of select='$foo'/></root>
</xsl:template>
</xsl:stylesheet>

$ echo '<root/>' | xsltproc --stringparam foo "\"'" test.xslt -
stringparam contains both quote and double-quotes !


Note that there *is* a way to pass such a string as a parameter, although
a convoluted one:

$ echo '<root/>' | xsltproc --param foo "concat('\"', \"'\")" test.xslt -
<?xml version="1.0"?>
<root>"'</root>


-- System Information:
Debian Release: squeeze/sid
   APT prefers unstable
   APT policy: (900, 'unstable'), (500, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xsltproc depends on:
ii  libc6                       2.9-26       GNU C Library: Shared libraries
ii  libgcrypt11                 1.4.4-4      LGPL Crypto library - runtime libr
ii  libxml2                     2.7.5.dfsg-1 GNOME XML library
ii libxslt1.1 1.1.26-1 XSLT processing library - runtime
xsltproc recommends no packages.

xsltproc suggests no packages.

-- no debconf information

--
Jakub Wilk



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to