[xslt] namespace prefix missing for root element in generated xml file
- From: Dan Gohman <dgohman earthlink net>
- To: xslt gnome org
- Subject: [xslt] namespace prefix missing for root element in generated xml file
- Date: Sun, 6 Oct 2002 19:49:13 -0500
It appears that xsltproc is omitting the namespace prefix for
the root element in its XML output.
Given the following stylesheet:
<?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"
omit-xml-declaration="no"
doctype-system="/some/path"
/>
<xsl:template match="/">
<a:bar xmlns:a="http://example.com/this/is/an/example"/>
</xsl:template>
</xsl:stylesheet>
and any XML file, xsltproc produces this output:
<?xml version="1.0"?>
<!DOCTYPE bar SYSTEM "/some/path">
<a:bar xmlns:a="http://example.com/this/is/an/example"/>
The root element specified in the DOCTYPE is missing the namespace
prefix. With both xalan and sablotron, the DOCTYPE looks like this:
<!DOCTYPE a:bar SYSTEM "/some/path">
Here is the output of xsltproc --version:
Using libxml 20424, libxslt 10021 and libexslt 712
xsltproc was compiled against libxml 20424, libxslt 10021 and libexslt 712
libxslt 10021 was compiled against libxml 20424
libexslt 712 was compiled against libxml 20424
Thanks for your help,
Dan
--
Dan Gohman
dgohman@earthlink.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]