[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Unwanted namespace prefix _0

Subject: Re: Unwanted namespace prefix _0
From: Martin Holmes <mholmes@xxxxxxx>
Date: Mon, 23 Dec 2013 13:43:35 -0800
 Re: Unwanted namespace prefix _0
As I posted above, test files are here:


I get the same result with Saxon _in_Oxygen_ whether I provide a prefix for the Examples namespace in the root stylesheet element or not; and whether or not I exclude it with exclude-result-prefixes. I do _not_ get the prefixes in the output if I run the transformation at the command line with Saxon. So the problem has something to do with the Oxygen context, but I can't figure out what it is.


On 13-12-23 01:39 PM, Michael Kay wrote:
To debug your code, we need to see your code.

Saxon generates a namespace prefix of the form "_0" in certain unusual circumstances when it is necessary to avoid binding the same prefix to two different URIs. To understand why this is happening for your stylesheet, I would need to see the (relevant part of) the stylesheet.

Michael Kay

On 23 Dec 2013, at 16:16, Martin Holmes <mholmes@xxxxxxx> wrote:

Hi all,

I'm doing an identity transform with Saxon (HE, PE and EE all do the same) on a TEI file with embedded examples in the Examples namespace:

<TEI xmlns="http://www.tei-c.org/ns/1.0" version="5.0">
<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>

In the output, Saxon generates unwanted namespace prefixes, like this:

<_0:egXML xmlns:_0="http://www.tei-c.org/ns/Examples" valid="true">
  For more information, consult the
  <_0:ref target="mol:linking#linking_graphics"> guide to
  linking graphic content</_0:ref>.</_0:egXML>

This is even though I have exclude-result-prefixes="#all", and it happens whether or not I define a prefix in the root stylesheet element for the Examples namespace.

What am I missing? How would I get output that looks exactly like the input?


Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.