<div dir="ltr"><div>Here's the magic: <a href="http://www.w3.org/XML/1998/namespace">http://www.w3.org/XML/1998/namespace</a> a.k.a "by definition" :)</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2014-09-04 19:38 GMT+01:00 Roland, Perry D. (pdr4h) <span dir="ltr"><<a href="mailto:pdr4h@eservices.virginia.edu" target="_blank">pdr4h@eservices.virginia.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What he said. :-)<br>
<br>
Namespace-aware software should "automagically" support the XML namespace. Have a look at <a href="http://www.informit.com/articles/article.aspx?p=31837&seqNum=9" target="_blank">http://www.informit.com/articles/article.aspx?p=31837&seqNum=9</a>.<br>
<div class=""><br>
--<br>
p.<br>
<br>
<br>
> -----Original Message-----<br>
> From: mei-l [mailto:<a href="mailto:mei-l-bounces@lists.uni-paderborn.de">mei-l-bounces@lists.uni-paderborn.de</a>] On Behalf Of<br>
</div><div class="">> Johannes Kepper<br>
> Sent: Thursday, September 04, 2014 2:34 PM<br>
> To: Music Encoding Initiative<br>
</div><div class="">> Subject: Re: [MEI-L] XML Namespaces in MEI<br>
><br>
> If I got that right, all xml parsers need to understand the xml namespace<br>
> without any further instruction. All parsers I've come across (well, the ones<br>
</div>> that did care about namespaces...) followed that rule. xml:base should work<br>
> as you described, yes. Just like xml:lang...<br>
<div class="HOEnZb"><div class="h5">><br>
> jo<br>
><br>
> Am 04.09.2014 um 20:29 schrieb Andrew Hankinson<br>
> <<a href="mailto:andrew.hankinson@mail.mcgill.ca">andrew.hankinson@mail.mcgill.ca</a>>:<br>
><br>
> > Ok, so by extension<br>
> ><br>
> > <someElement xml:base="something"><br>
> ><br>
> > is OK too?<br>
> ><br>
> > On Sep 4, 2014, at 2:26 PM, Roland, Perry D. (pdr4h)<br>
> <<a href="mailto:pdr4h@eservices.virginia.edu">pdr4h@eservices.virginia.edu</a>> wrote:<br>
> ><br>
> >> It's enough to say<br>
> >><br>
> >> <mei xmlns="<a href="http://www.music-encoding.org/ns/mei" target="_blank">http://www.music-encoding.org/ns/mei</a>"><br>
> >> <someElement xml:id="abc123" /><br>
> >> </mei><br>
> >><br>
> >> (oXygen seems to understand that @id is in the XML namespace.)<br>
> >><br>
> >> but<br>
> >><br>
> >> <?xml version="1.0" encoding="UTF-8"?><br>
> >> <mei xmlns:xml="<a href="http://www.w3.org/XML/1998/namespace" target="_blank">http://www.w3.org/XML/1998/namespace</a>"<br>
> >> xmlns="<a href="http://www.music-encoding.org/ns/mei" target="_blank">http://www.music-encoding.org/ns/mei</a>"><br>
> >> <someElement xml:id="abc123" /><br>
> >> </mei><br>
> >><br>
> >> is ok too.<br>
> >><br>
> >> You just can't declare the XML namespace as anything other than<br>
> "<a href="http://www.w3.org/XML/1998/namespace" target="_blank">http://www.w3.org/XML/1998/namespace</a>".<br>
> >><br>
> >> --<br>
> >> p.<br>
> >><br>
> >><br>
> >> > -----Original Message-----<br>
> >> > From: mei-l [mailto:<a href="mailto:mei-l-bounces@lists.uni-paderborn.de">mei-l-bounces@lists.uni-paderborn.de</a>] On Behalf<br>
> Of<br>
> >> > Andrew Hankinson<br>
> >> > Sent: Thursday, September 04, 2014 2:11 PM<br>
> >> > To: Music Encoding Initiative<br>
> >> > Subject: [MEI-L] XML Namespaces in MEI<br>
> >> ><br>
> >> > Hi all,<br>
> >> ><br>
> >> > Does anyone know how the xml: namespace prefix works? Do you have<br>
> to<br>
> >> > declare it explicitly, or is it always implicitly declared?<br>
> >> ><br>
> >> > So, do you have to do this:<br>
> >> ><br>
> >> > <mei xmlns:xml="<a href="http://www.w3.org/XML/1998/namespace" target="_blank">http://www.w3.org/XML/1998/namespace</a>"<br>
> >> > xmlns="<a href="http://www.music-encoding.org/ns/mei" target="_blank">http://www.music-encoding.org/ns/mei</a>"><br>
> >> > <someElement xml:id="abc123" /><br>
> >> > </mei><br>
> >> ><br>
> >> > Or is it enough to do this:<br>
> >> ><br>
> >> > <mei xmlns="<a href="http://www.music-encoding.org/ns/mei" target="_blank">http://www.music-encoding.org/ns/mei</a>"><br>
> >> > <someElement xml:id="abc123" /><br>
> >> > </mei><br>
> >> ><br>
> >> > -Andrew<br>
> >> > _______________________________________________<br>
> >> > mei-l mailing list<br>
> >> > <a href="mailto:mei-l@lists.uni-paderborn.de">mei-l@lists.uni-paderborn.de</a><br>
> >> > <a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" target="_blank">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a><br>
> >> _______________________________________________<br>
> >> mei-l mailing list<br>
> >> <a href="mailto:mei-l@lists.uni-paderborn.de">mei-l@lists.uni-paderborn.de</a><br>
> >> <a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" target="_blank">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a><br>
> ><br>
> > _______________________________________________<br>
> > mei-l mailing list<br>
> > <a href="mailto:mei-l@lists.uni-paderborn.de">mei-l@lists.uni-paderborn.de</a><br>
> > <a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" target="_blank">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a><br>
><br>
><br>
> _______________________________________________<br>
> mei-l mailing list<br>
> <a href="mailto:mei-l@lists.uni-paderborn.de">mei-l@lists.uni-paderborn.de</a><br>
> <a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" target="_blank">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a><br>
<br>
_______________________________________________<br>
mei-l mailing list<br>
<a href="mailto:mei-l@lists.uni-paderborn.de">mei-l@lists.uni-paderborn.de</a><br>
<a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" target="_blank">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a><br>
</div></div></blockquote></div><br></div>