|
Subject: Re: [xsl] Re: implements-prefix vs implements-namespace From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx> Date: Tue, 6 Mar 2001 13:32:46 +0000 |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Re: implements-prefix vs , David Carlisle | Thread | RE: [xsl] Re: implements-prefix vs , DPawson |
| Re: [xsl] implements-prefix vs impl, Jeni Tennison | Date | [xsl] tables, colspans and borders, Pollington, Lee (ELS |
| Month |