Hi there,
Having installed the xalan-c I'm experiencing a strange problem when
applying XSLT to XML documents that have a PUBLIC DOCTYPE in them.
I didn't see anything about this in the FAQ.
When using this XSLT:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml"/>
<xsl:template match="html">
<foo>Testing</foo>
</xsl:template>
</xsl:stylesheet>
On this XML document:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html>
<head>
<title>t001</title>
</head>
<body></body>
</html>
I get the following error:
[EMAIL PROTECTED]:~/test> /usr/local/xml-xalan/c/bin/Xalan test.xml style.xsl
Fatal Error.Occurred at file test.xml, line 3, column 72. An exception
occurred! Type:MalformedURLException, Message:The URL used an
unsupported protocol
SAXParseException: An exception occurred! Type:MalformedURLException,
Message:The URL used an unsupported protocol (test.xml, line 3, column 72)
If I use <DOCTYPE html> it works fine. And with xalan-j it also works fine.
Does anybody have a pointer to what I'm doing wrong?
Kind regards,
Morten Bruun