[xuriella-devel] selecting all attributes under a node

David Lichteblau david at lichteblau.com
Fri Jan 7 18:50:33 UTC 2011


Quoting Andrei Stebakov (lispercat at gmail.com):
> In the following example:
> 
> (xuriella:apply-stylesheet
>   "<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
>                   version='1.0'>
>      <xsl:template match='/'>
>        <xsl:if test='test-input/function[@name]'>
>          <xsl:value-of select='test-input/function//@value'/>
>        </xsl:if>
>      </xsl:template>
>    </xsl:stylesheet>"
>   "<test-input>
>      <function name='concat-strings'>
>        <arg value='Text1'/>
>        <arg value='Text2'/>
>        <arg value='Text3'/>
>      </function>
>   </test-input>")
> 
> The output is just Text1. Shouldn't it be "Text1Text2Text3"?

No, the output Xuriella gives is correct.  C.f. the specification of
value-of and string().


David




More information about the xuriella-devel mailing list