Hi,
i have a problem with the namespace by a xml export.
First of all, i export the OOo-Elements with a copy-template.
<!-- copy -->
<xsl:template match="/|comment()|processing-instruction()|*|@*">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
Now i would like to transforms the elements to tbook.
If i transform the OOo-XML (created with the copy template), i get this
correct solution.
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE book PUBLIC "-//Torsten Bronger//DTD tbook 1.5.3//EN"
"/usr/share/xml/tbook/tbook.dtd">
<book xml:lang="de">
<frontmatter>
<title>Mein Titel</title> <author></author>
</frontmatter>
<mainmatter>
<chapter>
<heading>Hier steht eine Überschrift.</heading>
<p>Hier steht jetzt ein Standardtext.</p>
</chapter>
</mainmatter>
</book>
If i use the transformation (export filter) with OOo (same xsl file), i
get extra namespace attributes.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//Torsten Bronger//DTD tbook 1.5.3//EN"
"/usr/share/xml/tbook/tbook.dtd">
<book xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:dom="http://www.w3.org/2001/xml-events"
xmlns:oooc="http://openoffice.org/2004/calc"
xmlns:ooow="http://openoffice.org/2004/writer"
xmlns:ooo="http://openoffice.org/2004/office" xml:lang="de">
What can i do, to get rid of this extra namespace?
I think, this is a problem with the xslt processor (OOo - jdk 1.4.2 and
xsltproc from the command line)
Secondary i saw, that the encoding is different, although i use the
encoding attribute in xsl:output.
<xsl:output method="xml" indent="yes" encoding="iso-8859-1"
doctype-public="-//Torsten Bronger//DTD tbook 1.5.3//EN"
doctype-system="/usr/share/xml/tbook/tbook.dtd"/>
By
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]