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

Re: Re: implements-prefix vs implements-namespace

Subject: Re: Re: implements-prefix vs implements-namespace
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Tue, 6 Mar 2001 13:32:46 +0000
xml namespace alias ns1
Hi Dave,

>> Do you even have to copy them? I don't know any processor that
>> randomly changes the prefixes of namespaces defined in the XSLT
>> stylesheet,
>
> I do. M$. create a stylesheet to create a stylsheet. If you use
> namespace-alias stylesheet-prefix="out" then M$ change the result to
> xsl. Saxon Xalan don't. They keep out as the prefix. (example, p
> 236, 'the book')

That's somewhat different, because xsl:namespace-alias does some
fairly non-standard stuff to namespace declarations anyway.
[Personally, I prefer the MSXML way because I like my generated
stylesheets to use the same prefix for XSLT instructions as I used for
XSLT instructions in the original stylesheet, purely for readability.]

What I was talking about was that I don't know of any processor that
will change:

  <my:foo your:bar="his:baz"
          xmlns:my="http://www.my.com"
          xmlns:your="http://www.your.com"
          xmlns:his="http://www.his.com" />

to:

  <ns0:foo ns1:bar="his:baz"
           xmlns:ns0="http://www.my.com"
           xmlns:ns1="http://www.your.com"
           xmlns:ns2="http://www.his.com" />

If there are such processors, then you would have to copy namespace
declarations explicitly. If there aren't, then you don't - just
declare the namespace and it will be copied, prefix retained,
automatically.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



 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.