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

Re: SAX Filters for Namespace Processing

  • From: Jeff Rafter <jeffrafter@e...>
  • To: "Simon St.Laurent" <simonstl@s...>
  • Date: Wed, 01 Aug 2001 09:50:13 -0700

ithaca filters
Not that I want to re-open the debates that were had a couple of months ago,
I have a couple of small questions:

<p:person xmlns:p="http://simonstl.com/person">
  <givenName>Chip</givenName>
  <familyName>Skillet</familyName>
  <address>
    <city>Ithaca</city>
  </address>
</p:person>

Assuming you have encountered the above example, what was it that you
couldn't do because of the unqualified nature?  Obviously there is a touchy
issue with unqualified elements being designed within a schema that
represents a namespace, while they are not, themselves, within that
namespace.  This can make it difficult to process them, I suppose, but what
is the exact difficulty?

From a purely naive point of view (mine) I see XML as completely heirarchal;
where context is king.  Processing elements rarely occurs outside of knowing
context (be it only the context of a specific document), so it would seem
that needing the context in the case of unqualified elements is perfectly
natural.

My second question revolves around the default namespace issue (which is
where this all got really contentios last time).  I am wondering if you make
any special choices, or plan to regarding default namespaces:

<root xmlns="http://simonstl.com/default">
  <p:person xmlns:p="http://simonstl.com/person">
    <givenName>Chip</givenName>
    <familyName>Skillet</familyName>
    <address>
      <city>Ithaca</city>
    </address>
  </p:person>
</root>

or

<root xmlns="http://simonstl.com/default">
  <p:person xmlns:p="http://simonstl.com/person">
    <givenName>Chip</givenName>
    <familyName>Skillet</familyName>
    <address xmlns="">
      <city>Ithaca</city>
    </address>
  </p:person>
</root>

I am not looking to say what would be right or wrong-- I am just wondering
how or if your filter handles these?

Regards,
Jeff Rafter
Defined Systems
http://www.defined.net
XML Development and Developer Web Hosting


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.