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 Matt Sergeant other posts by this author
Jul 11 2002 3:41PM messages near this date
view in the new Beta List Site
Re: Trouble installing XML::Filter::XSLT | Re: Trouble installing XML::Filter::XSLT
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 downloaded XML::LibXSLT v1.50, but it's failing on test #7, step 5:
>  
>      ok($results->toString =~ /typed data in stylesheet/);
>  
>  I was installing via the CPAN shell, and didn't notice that XML::LibXSLT
>  didn't install correctly.  I installed it anyway, and Callisto still
>  seems to work fine at any rate.  XML::Filter::XSLT installed
>  successfully too.
>  
>  Sorry for being a PEBCAK.  Any idea about the LibXSLT error up above?
>  

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.

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> 

_______________________________________________
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