blm has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have an xml file that I get using WWW::Mechanise and it is XML. It starts with:
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="/foo/test.xsl"?>
I want to parse the xml with XML::LibXML, find the xsl file url, retrieve it and apply it. At least that is what I think if have to do. I don't know how to get XML::LibXML to give me the declarations at the top (ie the <? ?> things).
All I really want is the HTML that results from applying the XSL to the XML. (I know, all you really want is a pony but this is about my question at the moment ;-) )
Thanks for any and all help. I am not fixed on using XML::LibXML so I would be interested in any other useful modules.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Applying XSL stylesheet specified in XML file to the XML
by dHarry (Abbot) on Mar 24, 2009 at 08:50 UTC | |
by blm (Hermit) on Mar 24, 2009 at 12:14 UTC | |
by dHarry (Abbot) on Mar 24, 2009 at 14:23 UTC | |
Re: Applying XSL stylesheet specified in XML file to the XML
by ForgotPasswordAgain (Priest) on Mar 25, 2009 at 09:26 UTC |
Back to
Seekers of Perl Wisdom