Bad Transform or Bad Engine?

E

Eric Anderson

Problem:
XML/XSLT files don't seem to process under any engines I have tried
except libxslt (from Gnome Project).

Background:
* The XML file describes the site structure of a website.
* This structure is presented on the site in a couple of ways.
* One presentation is through a Javascript menu from Dynarch
(http://www.dynarch.com/products/dhtml-menu/). The Dynarch menu reads a
bunch of <ul> and <li> tags to build the menu.
* In the transform if menuitem[@menu='true'] or menu[@menu='true'] then
it is included in the javascript menu.

Why I need this to work:
* Works fine under LibXSLT
* LibXSLT with Perl extension difficult to install under Windows
* Using XML::XSLT::Wrapper so can choose engine.
* XML::XSLT and XML::Sablotron is easier to install under Windows but
neither produces the results I want.
* I assume since only one engine is giving me the correct result it is a
problem with my transformation but I am unsure how to determine the
problem. The results from the transformation in the engines that don't
work is an empty string.

To avoid wrapping the XML and XSLT files in an newsgroup post I have
simply placed links below to the files:

http://afaik.us/files/sitelayout.xml
http://afaik.us/files/menu.xsl

Any help or pointers would be greatly appreciated.

Eric
 
P

Peter Flynn

Eric said:
Problem:
XML/XSLT files don't seem to process under any engines I have tried
except libxslt (from Gnome Project). [...]
http://afaik.us/files/sitelayout.xml
http://afaik.us/files/menu.xsl

Works perfectly with Saxon-8, but I had to remove the reference to the DTD
because "../../../../framework/sitelayout.dtd" is a physical impossibility
when the URI is http://afaik.us/files/sitelayout.xml (presumably it refers
to something on your system outside the scope of the server document root).

The output is at http://silmaril.ie/menu.xml

///Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,001
Messages
2,570,254
Members
46,849
Latest member
Fira

Latest Threads

Top