Re: [xslt] document('')



On Fri, 12 Jul 2002, Morus Walter wrote:

> > <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

Right. So is this an issue with parsing a string instead? What does
xsltproc do if you pipe the stylesheet to it? Or can't you do that?

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




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