RE: Newbie question
by Grant McLean other posts by this author
Jul 10 2002 3:49PM messages near this date
view in the new Beta List Site
Re: Newbie question
|
Trouble installing XML::Filter::XSLT
From: Mohammed Khatib [mailto:mkhatib@[...].au]
> Hi All,
>
> I am relatively new to XML so please excuse me if this
> question sounds rather trivial.
>
> I recently wrote an XML to Folio flat file converter (using
> Perl)
Do you mean that you wrote a Perl script that recognised XML
tags and entities? If that is what you've done, I'd really
recommend you find out about existing XML parser modules.
Here's a link:
http://perl-xml.sourceforge.net/faq/#roll_your_own
> in which entities were converted to single characters
> using an %ent2char hash, where entities were mapped to the
> desired ISO-Lat 1 character.
If you used an XML parser module, this would be done for you.
(the 'single characters' would actually be UTF-8 encoded).
However bear in mind that the XML document would need to
use a DTD to define the mapping. If it didn't do that, then
it would not be a well-formed document. Here's another link:
http://perl-xml.sourceforge.net/faq/#undefined_entity
> During testing, every time the program encountered an entity
> foreign to its knowledge, I had to look up the characer chart
> and add to the %ent2char associative array. I found this
> rather troublesome and somewhat inefficient.
People often make documents which they claim are XML but which
include references to undefined entities. This is so common in
the RSS world that Matt Sergeant has written a program to fix
broken RSS files. You might want to borrow code from that:
http://axkit.org/download/rssmirror.pl
Regards
Grant
The information in this email is confidential and may be legally privileged. It is intended
solely for the addressee. Access to this email by anyone else is unauthorised.if you are not
the intended recipient, any disclosure, copying, distribution, or any action taken or omitt
ed to be taken in reliance on it is prohibited and may be unlawful. Please note that any vie
ws, opinions or advice contained in this email are those of the sending individual and not n
ecessarily those of the firm. It is possible for data transmitted by e-mail to be deliberate
ly or accidentally corrupted or intercepted. For this reason, where the communication is by
e-mail, J&E Davy does not accept any responsibility for any breach of confidence which may a
rise from the use of this medium. If you have received this e-mail in error please notify us
immediately at mailto:helpdesk@[...].ie and delete this e-mail from your system.
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
|