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: libxml and (X)HTML documents
by Robin Berjon other posts by this author
Jul 11 2002 2:20PM messages near this date
view in the new Beta List Site
Re: libxml and (X)HTML documents | Re: Trouble installing XML::Filter::XSLT
On Thursday 11 July 2002 16:08, Aaron Straup Cope wrote:
>  On Thu, 11 Jul 2002, Eric Bohlman wrote:
>  If I just declare "xmlns=http://foo.com", which has always been my
>  understanding was for default namespaces in XSL [1] ...
> 
>  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>                  xmlns="http://www.w3.org/1999/xhtml"
>                  version = "1.0" >
> 
>  ....the following error is printed to STDERR all over the place...
> 
>  Prefix must not be undef in get_uri(). The emtpy prefix must be '' at
>  /usr/local/lib/perl5/site_perl/5.005/XML/NamespaceSupport.pm line 194.
> 
>  If I declare...
> 
>  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>                  xmlns:html="http://www.w3.org/1999/xhtml"
>                  version = "1.0"
> 
>  ....the new file contains the truly weird...
> 
>  <?xml version='1.0' encoding='ISO-8859-1'?>
>  <html xmlns:xhtml='http://www.w3.org/1999/html'
>  xhtml:xmlns='http://www.w3.org/1999/html'>

Rofl, *cough*. I think that's either a bug in XML::NamespaceSupport or in 
XML::SAX::Writer, most likely the latter. In fact I think it's a bug 
Christian sent me a fix for but that I didn't apply immediately because I was 
looking for a use case. I'll look into it this week-end.

-- 
Robin Berjon <robin@[...].com>  -- for hire: http://robin.berjon.com/
  The computer can't tell you the emotional story.  It can give you the
exact mathematical design, but what's missing is the eyebrows.
  -- Frank Zappa

_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Aaron Straup Cope
Eric Bohlman
Aaron Straup Cope
Robin Berjon

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