Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^6: XML::XSLT problem

by bosshoff (Novice)
on Apr 24, 2005 at 22:28 UTC ( #451048=note: print w/replies, xml ) Need Help??

in reply to Re^5: XML::XSLT problem
in thread XML::XSLT problem

So, once again I am proven wrong, and I am actually happy! I totally forgot that I included a template to import another xml document. I now have two concerns:

1) Why was there not a more descriptive error; I didn't even see anything indicative of an error during import when I turned the debug switch on.

2) How do I include multiple sources into the transformation process? If I am unable to do that, things are going to get very complicated, so much so that I'm going to have to seriously rethink going back to good 'ol perl interposed with html.

Thanks for all the help rg0now, I probably would've thrown in the towel without your analysis.

Replies are listed 'Best First'.
Re^7: XML::XSLT problem
by rg0now (Chaplain) on Apr 24, 2005 at 22:38 UTC
    1) Why was there not a more descriptive error; I didn't even see anything indicative of an error during import when I turned the debug switch on.
    I am absolutely with you on this issue. I know that you are restricted to use XML::XSLT, but maybe it would be more beneficial to somehow migrate to XML::LibXML & co., because, for me at least, it have proven itself much more usable over the years. Also, it allows you to process multiple source files with the same stylesheet without reparsing (if this is what you aimed in point 2)), but I myself have never had to do such thing in reality...
Re^7: XML::XSLT problem
by gellyfish (Monsignor) on Apr 25, 2005 at 09:36 UTC

    The answer to your first question is that it looks like a bug in the implementation of document() (the actually error is coming from XML::Parser because it is not able to open the file.) I'll have a look at adding a test case based on your example and see to fixing it for the next release. If you send me an email with examples of failing XML and XSLT then it will probably help expedite matters.

    As to your second question you probably want to try setting the base argument to the XML::XSLT constructor to the location of your files.


      Alright, thanks for the help. I figured there was some argument I was missing for that; I would think that including other xml documents would be common practice.

      Here are the documents I was working with when I encountered this problem:


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://451048]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2023-03-28 18:26 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (68 votes). Check out past polls.