[xslt] document('')



Did 1.0.19 break document('')?

I have a specific test case for it in XML::LibXSLT, and it's no longer
working for people until they downgrade libxslt.

Here's the test XSL (the XML can be anything):

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

<xsl:output encoding="ISO-8859-1" method="text"/>

<data:type>typed data in stylesheet</data:type>

<xsl:template match="document">

Data: <xsl:value-of
select="document('')/xsl:stylesheet/data:type"/><xsl:text>
</xsl:text>

</xsl:template>

</xsl:stylesheet>

Which should get the value in the <data:type> tag according to Michael
Kay's book.

-- 
<!-- Matt -->
<:->Get a smart net</:->




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]