|
[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
|
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 |
- Re: exclude result prefixes doesn't stop prefix from showingup., (continued)
- David Carlisle - Fri, 22 Aug 2003 14:52:11 -0400 (EDT)
- David Carlisle - Fri, 22 Aug 2003 12:41:16 -0400 (EDT)
- Mark R. Diggory - Fri, 22 Aug 2003 13:10:24 -0400 (EDT)
- Michael Kay - Fri, 22 Aug 2003 14:00:46 -0400 (EDT)
- Mark R. Diggory - Fri, 22 Aug 2003 14:38:34 -0400 (EDT) <=
- David Carlisle - Fri, 22 Aug 2003 14:44:53 -0400 (EDT)
- Michael Kay - Fri, 22 Aug 2003 13:56:56 -0400 (EDT)
- David Carlisle - Fri, 22 Aug 2003 15:07:41 -0400 (EDT)
- Mark R. Diggory - Fri, 22 Aug 2003 15:29:16 -0400 (EDT)
|
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
| RSS 2.0 |
|
| Atom 0.3 |
|
|