Does Sabltotron implement these yet?

Consider this XML

<foo>
 <bar>1</bar>
 <bar>2</bar>
 <bar>3</bar>
</foo>


and this XSL

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">

<xsl:output method="text"/>

<xsl:template match="bar">
<xsl:choose>
 <xsl:when test="not(preceding-sibling::bar)">
  <xsl:apply-templates/>
 </xsl:when>
 <xsl:when test="not(following-sibling::bar)">
  <xsl:text> and </xsl:text><xsl:apply-templates/>
 </xsl:when>
 <xsl:otherwise>
  <xsl:text>, </xsl:text><xsl:apply-templates/>
 </xsl:otherwise>
</xsl:choose>
</xsl:template>

</xsl:stylesheet>


the output should be "1, 2 and 3", but Sablotron generates ", 1, 2, 3"

bug, or just not implemented yet?

Sebastian Rahtz


Reply via email to