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: What's So Great about SAX? (ie. Future Indecisions)
by Grant McLean other posts by this author
Oct 8 2002 8:39PM messages near this date
view in the new Beta List Site
RE: RE: What's So Great about SAX? (ie. Future Indecisions) | Re: What's So Great about SAX? (ie. Future Indecisions)
From: Robin Berjon [mailto:robin.berjon@[...].fr]
>  Grant McLean wrote:
>  > The way I'd see that working with SAX is something like:
>  > 
>  >   use XML::SAX::Machines qw( :all );
>  >   use XML::Filter::NSNormalise;
>  >   use XML::Simple;
>  > 
>  >   my $p = Pipeline(
>  >     XML::Filter::NSNormalise->new(
>  >       map => { 
>  >         'http://purl.org/dc/elements/1.1/' => 'dc',
>  >         'http://purl.org/rss/1.0/modules/syndication/' => 'syn'
>  >       }
>  >     )
>  >     => XML::Simple->new(
>  >       keyattr => {}
>  >     )
>  >   );
>  > 
>  >   my $ref = $p->parse_uri('./rss.xml');
>  > 
>  > An off-the-cuff version of XML::Filter::NSNormalise is attached.
>  
>  That's a very useful filter, you should definitely release it 
>  to CPAN. 

I'll package it up and 'ship' it.

>  I see mostly one reason to prefer clarkian notation over 
>  normalisation, it's an ugly reason but it's unfortunately a real 
>  one: QNames in content. That filter won't be able to update it.

Can you give an example of the 'QNames in content' phenomenon?
(I'm not trying to propose a fix, I'd just like to understand the
problem better).

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

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