|
Subject: Re: [xsl] Re: Unwanted namespace prefix _0 From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Mon, 23 Dec 2013 19:00:04 +0100 |
Another oddity is this: even if I define a namespace prefix for the Examples namespace:
xmlns:eg="http://www.tei-c.org/ns/Examples"
in the stylesheet root element, Saxon still uses the _0 prefix in the output.
It's easy to cleanup with a regex search-and-replace, but it's really annoying. There must be some way around it, otherwise people would be asking this question all the time, surely? I assumed I'd just forgotten something obvious or screwed something up.
<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>
<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>| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Re: Unwanted namespace prefix, Martin Holmes | Thread | [xsl] Re: Unwanted namespace prefix, Martin Holmes |
| [xsl] Re: Unwanted namespace prefix, Martin Holmes | Date | Re: [xsl] Re: Unwanted namespace pr, Graydon |
| Month |