<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META content='"MSHTML 4.72.3110.7"' name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#000000></FONT>
<DIV><FONT color=#000000 size=2> <FONT size=3>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.</FONT></FONT></DIV>
<DIV><FONT color=#000000 size=2><FONT size=3></FONT></FONT> </DIV></DIV>
<DIV><FONT color=#000000>Hello,</FONT></DIV>
<DIV><FONT
color=#000000>
I am confused as to how XML NameSpace aware processors would process:-
</FONT></DIV>
<DIV><FONT color=#000000></FONT> </DIV>
<DIV><FONT
color=#000000>
- Namespace definations (eg. xmlns:edi = "<A
href="http://www.my.org/directory">http://www.my.org/directory</A>")</FONT></DIV>
<DIV><FONT color=#000000></FONT><FONT
color=#000000>
- Nameprefixes present in XML files (eg. <edi:Segment>)</FONT></DIV>
<DIV><FONT color=#000000></FONT> </DIV>
<DIV><FONT
color=#000000>
Looking at the "xmlns" attribute value (the NameSpace Name) it is
difficult to say what it signifies.eg. </FONT></DIV>
<DIV><FONT color=#000000> </FONT></DIV>
<DIV><FONT
color=#000000>
* xmlns:validate #FIXED "<A
href="http://www.org/directory">http://<U><FONT
color=#0000ff>www.org/directory</A>"</FONT></U> - points to a directory of
say validating programs, let's say a set of DLLs.</FONT></DIV>
<DIV><FONT color=#000000></FONT> </DIV>
<DIV><FONT
color=#000000>
* xmlns:xsl #FIXED "<A
href="http://www.w3c.org/TR/WD-xsl">www.w3c.org/TR/WD-xsl"</A> -
points to the new XSL specification.</FONT></DIV>
<DIV><FONT color=#000000></FONT> </DIV>
<DIV><FONT color=#000000
size=2> <FONT
size=3>How would an XML NS processor know what each NameSpace Name points
to?</FONT></FONT></DIV>
<DIV><FONT color=#000000 size=2><FONT
size=3> Or is
there some kind of hardcoding done in the processor which tells it what each
NameSpace Name means?</FONT></FONT></DIV>
<DIV><FONT color=#000000 size=2><FONT size=3> eg. if "<A
href='http://www.w3c.org/TR/WD-xsl"'>www.w3c.org/TR/WD-xsl"</A> is
encountered , it means the XSL spec.</FONT></FONT></DIV>
<DIV><FONT color=#000000></FONT> </DIV>
<DIV><FONT
color=#000000>
What happens when an element name prefixed with a NS prefix is encountered? How
does the XML NS processor process such names?</FONT></DIV>
<DIV><FONT color=#000000> eg.</FONT></DIV>
<DIV><FONT color=#000000> Let's say I have an xml file :-</FONT></DIV>
<DIV><FONT color=#000000></FONT> </DIV>
<DIV><?xml version="1.0"?></DIV>
<DIV><Root
xmlns:ContentCheck="http://www.my.org/checkdirectory"></DIV>
<DIV><FONT color=#000000> <ContentCheck:Alpha><FONT
color=#000000>Test Data</ContentCheck:Alpha></FONT></FONT></DIV>
<DIV></Root></DIV>
<DIV> </DIV>
<DIV>Let's also assume that <A
href="http://www.my.org/checkdirectory">http://www.my.org/checkdirectory</A>
points to a directory of validating dlls, one of which is Alpha.dll which
<ContentCheck:Alpha> is supposed to refer to.</DIV>
<DIV> </DIV>
<DIV>1) How would an XML NS procesor know that <ContentCheck:Alpha> is
actually supposed to refer to Alpha.dll present in <A
href="http://www.my.org/checkdirectory">http://www.my.org/checkdirectory</A>
?</DIV>
<DIV> </DIV>
<DIV>2) I being the author of my XML file know that <A
href="http://www.my.org/checkdirectory">http://www.my.org/checkdirectory</A>
refers to a directory of validating programs, but how the XML NS processor know
this?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT color=#000000></FONT><FONT color=#000000
size=2>
<FONT size=3>Thanks in advance for any answers,</FONT></FONT></DIV>
<DIV><FONT color=#000000 size=2><FONT
size=3></FONT>
<FONT size=3>AMIT</FONT></FONT></DIV>
<DIV><FONT color=#000000></FONT> </DIV></BODY></HTML>