ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
Re: Trouble installing XML::Filter::XSLT
by Michael A Nachbaur other posts by this author
Jul 11 2002 4:16PM messages near this date
view in the new Beta List Site
Re: Trouble installing XML::Filter::XSLT | Re: Trouble installing XML::Filter::XSLT
On Thu, 11 Jul 2002 16:41:42 +0100 Matt Sergeant wrote:
>  Michael A Nachbaur wrote:
>  > On Thu, 11 Jul 2002 09:45:44 +0100 Matt Sergeant wrote:
>  > 
>  >>What versions of XML::LibXSLT and XML::LibXML do you have?
>  > 
>  > 
>  > D'oh.  Forgot to check my versions on those packages too.
>  > XML::LibXML = 1.52
>  > XML::LibXSLT = 1.31
>  > libxml2-2.4.23-1
>  > libxslt-1.0.19-1
>  > 
>  I think it's to do with Daniel Veillard's new libxslt 1.0.19 (I assume
>  that's the one he released really recently). His changelog mentioned 
>  something about fixing document('') stuff, which is what that test
>  tests for. But now I don't know if it's the test that's broken or
>  libxslt.

I downgraded to libxslt 1.0.18, reinstalled XML::LibXSLT successfully,
and XML::Filter::XSLT installed without a hiccup.  Thanks for the heads up.
 
>  The stylesheet basically uses document('') to get at the <data:type>
>  tag in the stylesheet. Obviously it's not working now. Can someone
>  more knowledgable in XSLT tell me if this is the correct way to get at
>  the tag:
>  
>  <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>

Wow, fun...I didn't know one could do this.  Just goes to show it pays to read the spec.

-- 
OpenSource: Every now and then, you get what you don't pay for.
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Michael A Nachbaur
Matt Sergeant
Morus Walter
Matt Sergeant
Matt Sergeant
Bart Schuller
Michael A Nachbaur
Kip Hampton
Matt Sergeant

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved