I’m using XSLT 1.0 an want to transform an XML file. It works fine with IE 6.0 and Firefox 3.0.11. However, the PHP 5.2.6 XSLTProcessor (providing XSLT 1.0) and Qt C++ QXmlQuery (providing only XSLT 2.0) generates blank output.
I think of two options:
- Convert it to XSLT 2.0 (preferred)
- Extract Firefox part to parse.
The W3C specs seem to long for me to digest and the documents to transform are not that large.
XSLT should be pretty much backward compatibly, although obviously there are things you can use in XSLT 2.0 that make life much easier.
It sounds like you have something wrong in your XSLT, but as you don’t provide anything for us to look at it is hard to say.
I would recommend getting hold of Kernow-for-Saxon – it is a great UI for testing XSLT (much better than trying to use Firefox or IE) and if you have errors in your XSLT then Saxon is one of the better XSLT processors for giving good errors to try to identify the cause.
http://kernowforsaxon.sourceforge.net/
I don’t know anything about either the PHP or Qt processors, but it is possible there are errors in them that are not handling your XSLT correctly.