in reply to Re^4: XML::XSLT problem
in thread XML::XSLT problem
For me it appears that XML::XSLT croaks when it tries to open an external XML file. Line 62 of blog.xsl confirms it:
Have you provided the file menu.xml for the XSLT processor? I guess you have not...:-)<xsl:for-each select="document('menu.xml')/menu/item">
What really makes me wonder here is that XML::LibXSLT gives fairly sane output, even without the menu.xml file. Now this is really strange! Though, I admit that I am not really an expert of XSLT....
Update: after setting the debug_callback for XML::LibXSLT it seems that the parser just silently ignores the missing file here (only noing that the for-each did not produce a node list). XML::XSLT appears to be much more picky here...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: XML::XSLT problem
by bosshoff (Novice) on Apr 24, 2005 at 22:28 UTC | |
by rg0now (Chaplain) on Apr 24, 2005 at 22:38 UTC | |
by gellyfish (Monsignor) on Apr 25, 2005 at 09:36 UTC | |
by bosshoff (Novice) on Apr 25, 2005 at 14:09 UTC |
In Section
Seekers of Perl Wisdom