RE: [xsl] namespace issue

Subject: RE: [xsl] namespace issue
From: DPawson@xxxxxxxxxxx
Date: Wed, 12 Dec 2001 08:21:04 -0000
Thanks Jeni.

I prefer Davids solution
>"you can stick
>xmlns="myns" in the xsl:stylesheet element and then just use
><el>
>this is equivalent as far as the namespace rec (and xslt) is concerned,
>so just do whichever you prefer."

for my case, far easier, let Saxon sort it out :-)

I need to read this bit below a few more times.
thanks again Jeni.

Regards DaveP

> What David said that you can't assign a non-empty namespace prefix to
> an empty namespace name. That means you can't do:
> 
>   <el xmlns:pre="">...</el>
> 
> You can, however, assign an empty namespace prefix to a non-empty
> namespace name (that's what you do when you create a default
> namespace):
> 
>   <el xmlns="my-namespace">...</el> or
> 
> You can also assign an empty namespace prefix to an empty namespace
> name, and, of course, a non-empty namespace prefix to an non-empty
> namespace name:
> 
>   <pre:el xmlns="" xmlns:pref="my-namespace">...</pre:el>
> 
> I hope that helps,


- 

NOTICE: The information contained in this email and any attachments is 
confidential and may be legally privileged. If you are not the 
intended recipient you are hereby notified that you must not use, 
disclose, distribute, copy, print or rely on this email's content. If 
you are not the intended recipient, please notify the sender 
immediately and then delete the email and any attachments from your 
system.

RNIB has made strenuous efforts to ensure that emails and any 
attachments generated by its staff are free from viruses. However, it 
cannot accept any responsibility for any viruses which are 
transmitted. We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email 
and any attachments are those of the author and do not necessarily 
represent those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk 


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


Current Thread