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

Re: How do XML NameSpace aware processors react to NS definations?

  • From: "Amit Rekhi" <amitr@a...>
  • To: "Ronald Bourret" <rbourret@i...>
  • Date: Mon, 16 Nov 1998 15:59:20 +0530

xml namespace aware
Ronald,

>The namespace URL does not signify anything at all.  It is not a directory,
schema file, >or anything else.  *All* it is is a unique identifier that
identifies the namespace.  The >prefix is a convenient shorthand for the
full URL, nothing more.

If the NameSpace URI is nothing more than a unique identifier then what kind
of  namespace processing do namespace aware XML processors do?
for eg. If I have a sample XML file :-

<?xml version="1.0"?>
<Root xmlns:ContentCheck="http://www.my.org/checkdirectory">
 <ContentCheck:Alpha>Test Data</ContentCheck:Alpha>
</Root>

 * How would the namespace aware XML processor react when it encounters
the statement
<Root xmlns:ContentCheck="http://www.my.org/checkdirectory"> and then
the element
<ContentCheck:Alpha>?

* Is the following processing flow for XML NameSpace
processing correct and sufficient ?

  1)The XML NS aware processor will check for ':' in the element names
      of XML file
  2) When it finds one (as is in <ContentCheck:Alpha>) it would look for
     the xmlns declaration for the prefix encountered
  3) On not finding the xmlns declaration it would flag an error
      then proceed to 5)
  4) On finding it do nothing and proceed to 5)
  5) The processor would go back to step 1) for the next element
      encountered

   * Am I right in saying that whatever the namespace URI signifies
      is for the application to know not for the XML processor?
      for eg. if I have an XML file

<xsl:stylesheet xmlns:xsl="http://www.w3c.org/TR/WD-xsl">
  <xsl:template> some text </xsl:template>
</xsl:stylesheet>

* Then it is for the application (XSL processor) to know what
"http://www.w3c.org/TR/WD-xsl "  stands  for, not the XML processor.
Am I right?

* It is upto the application , to validate
the element names prefixed with "xsl" against their definations ,
which are stored in the XSL DTD at  "http://www.w3c.org/TR/WD-xsl "
Am I correct?



                    Thanks for any help,


Regards,

AMIT


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.