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

Re: namespace issue

Subject: Re: namespace issue
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Tue, 11 Dec 2001 16:28:46 +0000
prefix empty namespace
Hi Dave,

>> 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.
>
> I've now read that eight times and I'm off to let me head heal.
>
> I think it means
>   <el xmlns="">  == the default namespace, is 'special' 
>
> I think the double negative means I can't do <pre:el xmlns="">

Not quite.

The namespace name is the namespace URI used to identify the
namespace, our favourite example being
"http://www.w3.org/1999/XSL/Transform". An empty namespace name ("")
means 'no namespace' or 'null namespace'.

The namespace prefix is the character(s) that you associate with the
namespace URI within a particular document. We usually use 'xsl' as
the namespace prefix for the XSLT namespace, for example. An empty
namespace prefix is what you use with the default namespace - element
names without a prefix (with an empty namespace prefix) are in the
default namespace.

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,

Jeni

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


 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)
      • <Possible follow-ups>
      • DPawson - Tue, 11 Dec 2001 07:21:19 -0500 (EST)
        • Jeni Tennison - Tue, 11 Dec 2001 11:28:41 -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.