How do XML NameSpace aware processors react to NS definations?

Amit Rekhi (amitr@abinfosys.com)
Sat, 7 Nov 1998 10:41:41 +0530


This is a multi-part message in MIME format.

------=_NextPart_000_0038_01BE0A3B.34A63A90
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have gone through the latest XML NameSpaces Draft , but I have not =
been able to figure out the complete behaviour of XML NameSpace software =
and so the ques. below.

Hello,
I am confused as to how XML NameSpace aware processors would =
process:-=20

- Namespace definations (eg. xmlns:edi =3D =
"http://www.my.org/directory")
- Nameprefixes present in XML files (eg. <edi:Segment>)

Looking at the "xmlns" attribute value (the NameSpace Name) =
it is difficult to say what it signifies.eg.=20
=20
* xmlns:validate #FIXED "http://www.org/directory" - points =
to a directory of say validating programs, let's say a set of DLLs.

* xmlns:xsl #FIXED "www.w3c.org/TR/WD-xsl" - points to the =
new XSL specification.

How would an XML NS processor know what each NameSpace Name =
points to?
Or is there some kind of hardcoding done in the processor =
which tells it what each NameSpace Name means?
eg. if "www.w3c.org/TR/WD-xsl" is encountered , it means the XSL spec.

What happens when an element name prefixed with a NS prefix =
is encountered? How does the XML NS processor process such names?
eg.
Let's say I have an xml file :-

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

Let's also assume that http://www.my.org/checkdirectory points to a =
directory of validating dlls, one of which is Alpha.dll which =
<ContentCheck:Alpha> is supposed to refer to.

1) How would an XML NS procesor know that <ContentCheck:Alpha> is =
actually supposed to refer to Alpha.dll present in =
http://www.my.org/checkdirectory ?

2) I being the author of my XML file know that =
http://www.my.org/checkdirectory refers to a directory of validating =
programs, but how the XML NS processor know this?

Thanks in advance for any answers,
=
AMIT

------=_NextPart_000_0038_01BE0A3B.34A63A90
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">

 I have gone = through the=20 latest XML NameSpaces Draft , but I have not been able to figure out the = complete behaviour of XML NameSpace software and so the ques.=20 below.
 
Hello,
         &nb= sp; =20 I am confused as to how XML NameSpace aware processors would process:-=20
 
         &nb= sp; =20 - Namespace definations (eg. xmlns:edi =3D "http://www.my.org/directory"= ;)
         &nb= sp; =20 - Nameprefixes present in XML files (eg. = <edi:Segment>)
 
         &nb= sp; =20 Looking at the "xmlns" attribute value (the NameSpace Name) it = is=20 difficult to say what it signifies.eg. 
    
         &nb= sp; =20 * xmlns:validate  #FIXED "http://www.org/directory" - points to a = directory of=20 say validating programs, let's say a set of DLLs.
 
         &nb= sp; =20 * xmlns:xsl  #FIXED "www.w3c.org/TR/WD-xsl"&nbs= p; -=20 points to the new XSL specification.
 
          &nbs= p; How would an XML NS processor know what each NameSpace Name = points=20 to?
          &nbs= p; Or is=20 there some kind of hardcoding done in the processor which tells it what = each=20 NameSpace Name means?
 eg. if "www.w3c.org/TR/WD-xsl" = is=20 encountered , it means the XSL spec.
 
         &nb= sp; =20 What happens when an element name prefixed with a NS prefix is = encountered? How=20 does the XML NS processor process such names?
 eg.
 Let's say I have an xml file = :-
 
<?xml version=3D"1.0"?>
<Root=20 xmlns:ContentCheck=3D"http://www.my.org/checkdirectory">
 <ContentCheck:Alpha>Test Data</ContentCheck:Alpha>
</Root>
 
Let's also assume that  http://www.my.org/checkdirector= y=20 points to a directory of validating dlls, one of which is Alpha.dll = which=20 <ContentCheck:Alpha> is supposed to refer to.
 
1) How would an XML NS procesor know that = <ContentCheck:Alpha> is=20 actually supposed to refer to Alpha.dll present in http://www.my.org/checkdirector= y =20 ?
 
2) I being the author of my XML file know that http://www.my.org/checkdirector= y=20 refers to a directory of validating programs, but how the XML NS = processor know=20 this?
 
 
          &nbs= p;        =20 Thanks in advance for any answers,
         &nb= sp;           &nbs= p;            = ;            =             &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;            = ;            =              = AMIT
 
------=_NextPart_000_0038_01BE0A3B.34A63A90-- xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To (un)subscribe, mailto:majordomo@ic.ac.uk the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)