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

Re: exclude result prefixes doesn't stop prefix from s

Subject: Re: exclude result prefixes doesn't stop prefix from showingup.
From: "Mark R. Diggory" <mdiggory@xxxxxxxxxxxxxxxxx>
Date: Fri, 22 Aug 2003 14:39:27 -0400
different prefixes
Michael Kay wrote:

I simply want to control the prefixing so that its consistent throughout the document. I'm not trying to change the namespace. I'm trying to maintain the same namespace and prefixing across both the source and result documents.


OK, I understand it better now.

In theory, XSLT gives you no control over the prefix used by the
serializer in the result document. In practice, however, processors will
use the "original" prefix if they can. The cases where they have
difficulty doing this are (a) if you have used two different prefixes
for the same namespace (e.g. one in the stylesheet and one in the source
document - one might be the default prefix "") or (b) if you have used
two different namespaces with the same prefix (usually "").

Michael Kay


Yes, I've bounced of this issue, so from your description, it is the XML processor serializing the result tree that determines the prefix and not the XSLT Transformer? Is it also the case that the processor inserts the xmlns delarations? Or is this done in the generatation of the result tree by the Transformer? Couldn't a xsl transformer just be more restrictive about generating the namespace declarations in the result tree (via a more restrictive exclude-result-prefixes) or via some other feature?


-Mark


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.