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: XML::SAX::ExpatXS vs recognized_string
by Petr Cimprich other posts by this author
Dec 7 2004 8:43AM messages near this date
view in the new Beta List Site
XML::Simple Error | Re: XML::SAX::ExpatXS vs recognized_string
Bjoern Hoehrmann wrote:

> Hi,
> 
>   Over at the W3C Markup Validator we need to tell certain differences
> between XML markup such as <br/> vs <br /> and <br></br> in order to
> check XHTML documents for whether they comply to the compatibility rules
> in the XHTML10 Recommendation <http://www.w3.org/TR/xhtml1/#guidelines>.
> I currently do this using XML::Parser::Expat's recognized_string feature
> which is unfortunately disabled in XML::SAX::ExpatXS which I am trying
> to use now,
> 
>   XML::SAX::ExpatXS::RecognizedString($p->{ParserOptions}->{Parser})
> 
> always returns an empty string; recString(...) states there is currently
> no need to keep track of it... 
> 

Well, there is no need to track the recognized string for the Perl SAX 
API.  And there hasn't been any other need to track it so far.

> What would it take to have this enabled,
> possibly at user option?
>   
> 

All we need is to uncomment one single line. The availability of 
RecognizedString would be controlled by the the same SAX feature as the 
availability of locator (because of the way locator is implemented). I 
think this could be sufficient.

I have some other minor changes in CVS; I could hopefully update CPAN in 
few days.
Petr

-- 
Petr Cimprich
Ginger Alliance
www.gingerall.com

_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Bjoern Hoehrmann
Petr Cimprich
Bjoern Hoehrmann

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