OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Namespace: what's the correct usage?




> 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