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

Re: namespace issue

Subject: Re: namespace issue
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 11 Dec 2001 11:28:57 GMT
Re:  namespace issue
> Having specified the ns in the top level element,
> must I really add the xmlns attribute to all children?

don't think in terms of xmlns attributes, just think in terms of the
expanded name.

If you want to generate an element with expanded name {myns}el in the
output then you need to specify an element of that name in the
stylesheet.

You can go
<el xmlns="myns">
every time, or 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.

> I guess this still applies to the 'empty' ns? or is that special?

if you mean the empty prefix there is more or less nothing special about
that, the binding of the empty prefix to namespaces works in exactly the
same way as non empty prefixes, the only difference is thatif the prefix
is empty then the : is omitted.
If by empty ns you meant empty namespace name rather than empty prefix
then that is special in that it can only be assigned to the default
namespace (ie the empty prefix) you can't assign a non empty prefix to
the non-namespace.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

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


Current Thread
  • namespace issue
    • DPawson - Tue, 11 Dec 2001 05:31:32 -0500 (EST)
      • Francis Norton - Tue, 11 Dec 2001 06:20:18 -0500 (EST)
      • David Carlisle - Tue, 11 Dec 2001 06:29:47 -0500 (EST) <=
      • <Possible follow-ups>
      • DPawson - Tue, 11 Dec 2001 07:21:19 -0500 (EST)
      • DPawson - Wed, 12 Dec 2001 03:19:27 -0500 (EST)

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.