Michael Ludwig writes: >$ xsltproc --version >Using libxml 20707, libxslt 10126 and libexslt 815 >xsltproc was compiled against libxml 20707, libxslt 10126 and libexslt 815 >libxslt 10126 was compiled against libxml 20707 >libexslt 815 was compiled against libxml 20707
Excellent. I'm seeing this trouble with "libxml 20703, libxslt 10124 and libexslt 813", so assumably it has been recently fixed. Bravo!! Thanks, Phil % cat /tmp/a.xsl <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output indent="yes"/> <xsl:variable name="v" select="'before{during}after'"/> <xsl:template match="/"> <top> <e a="{$v}"/> <xsl:comment> { </xsl:comment> <e a="{substring-before($v, '{')}"/> <xsl:comment> } </xsl:comment> <e a="{substring-before($v, '}')}"/> <xsl:comment> {{ and }} </xsl:comment> <e a="{{ double curly works for me }}"/> </top> </xsl:template> </xsl:stylesheet> % echo '<e/>' | xsltproc /tmp/a.xsl - XPath error : Unfinished literal compilation error: file /tmp/a.xsl line 11 element e Attribute 'a': Failed to compile the expression 'substring-before($v, '' in the AVT. Bock [libslax/libslax]% xsltproc --version Using libxml 20703, libxslt 10124 and libexslt 813 xsltproc was compiled against libxml 20703, libxslt 10124 and libexslt 813 libxslt 10124 was compiled against libxml 20703 libexslt 813 was compiled against libxml 20703 % _______________________________________________ xslt mailing list, project page http://xmlsoft.org/XSLT/ [email protected] http://mail.gnome.org/mailman/listinfo/xslt
