[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Namespace: what's the correct usage?
- From: Kohsuke KAWAGUCHI <kohsukekawaguchi@yahoo.com>
- To: Martin Gudgin <marting@develop.com>
- Date: Sun, 20 May 2001 12:39:01 -0700
> So what would you do with the following XML document?
>
> <p:book xmlns:p='urn:x1'>
> <p:title>The Hobbit</p:title>
> <p:genre>Fantasy</p:genre>
> <p:author>
> <p:title>Dr</p:title>
> <p:familyName>Tolkien</p:familyName>
> </p:author>
> </p:book>
>
> All the elements are namespace qualified. How do you distinguish between the
> two title elements?
I suppose the following instance obeys the "unqualified-local" doctrine.
<p:book>
<title />
<genre/>
<author>
<title/>
<familyName/>
</author>
</p:book>
Then how do you distinguish between the two title elements?
regards,
----------------------
K.Kawaguchi
E-Mail: kohsukekawaguchi@yahoo.com