[Home] [By Thread] [By Date] [Recent Entries]
Martin Holmes wrote:
Another oddity is this: even if I define a namespace prefix for the Examples namespace: Can you post minimal but complete samples allowing us to reproduce the problem? When I try the input file <TEI xmlns="http://www.tei-c.org/ns/1.0" version="5.0"> [...] <div> <egXML xmlns="http://www.tei-c.org/ns/Examples" valid="true"> For more information, consult the <ref target="mol:linking#linking_graphics"> guide to linking graphic content</ref>.</egXML> </div> [...] </TEI> with the stylesheet <xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template></xsl:stylesheet> running Saxon-HE 9.5.1.3J from the command line I get the output <?xml version="1.0" encoding="UTF-8"?><TEI xmlns="http://www.tei-c.org/ns/1.0" version="5.0"> [...] <div> <egXML xmlns="http://www.tei-c.org/ns/Examples" valid="true"> For more information, consult the <ref target="mol:linking#linking_graphics"> guide to linking graphic content</ref>.</egXML> </div> [...] </TEI> So how do you run Saxon? Are you sure it is Saxon serializing the result when you get those strange prefixes?
|

Cart



