Re: [xslt] document('')
- From: Morus Walter <morus walter tanto-xipolis de>
- To: xslt gnome org
- Cc: matt sergeant org
- Subject: Re: [xslt] document('')
- Date: Fri, 12 Jul 2002 09:09:19 +0200
Hi Matt,
> 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):
>
The xml should contain a document element to make the test meaningful.
> <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.
>
As I just wrote in the perl xml mailing list, xsltproc shows no problem
with that.
(188 ...src/xml/libxslt-1.0.19/xsltproc) ./xsltproc ~/xslt-att/doctest.xsl ~/xslt-att/x.xml
Data: typed data in stylesheet
(189 ...src/xml/libxslt-1.0.19/xsltproc) ./xsltproc -V
Using libxml 20422, libxslt 10019 and libexslt 710
greetings
Morus
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]