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-enno-1.02
by Andy Bach other posts by this author
Jul 26 2000 11:55AM messages near this date
view in the new Beta List Site
Re: tool recommendation for transformation project | Dynamic Page modification
Hey Paul,

More poking around, and  I find that there are troubles w/ the toString
method, it loses the spaces around pipes and double/single quotes (so:
my $str = <<END;
<!DOCTYPE simpsons [
 <!ELEMENT person (#PCDATA)> 
 <!ATTLIST person
  name CDATA #REQUIRED
  hair (none | blue | yellow) "yellow"

becomes:
hair (none|blue|yellow) 'yellow'

This was the errors I saw in attr.t and print.t (or dom_attr.t
dom_print.t). attr.t also use a missing (?) method (or a bad
assumption), so I added:

package XML::Parser::ContentModel

sub equals
{
    my ($self, $other, $cmp) = @_;

    return 1;
}

to CmpDOM.pm to solve that.  However, this was when trying to install
Bundle::XML, trying again for XML::DOM now gets the libxml-enno bundle,
which fails a bunch more tests.  Looking at some of them, the spaces
around pipes seems to be a problem still.  Don't know how it should be
handle in real XML.

a

Andy Bach, sys mgr
andy@wiwb.uscourts.gov
Thread:
Andy Bach
Eric Bresie

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