<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
*I* know that, and *you* know that, but tell that to the libxml2 folks. ;)
<div><br>
</div>
<div>In any case: for those of you who are interested, the latest git version of libmei will now handle this correctly.</div>
<div><br>
</div>
<div>-Andrew</div>
<div><br>
<div>
<div>On Sep 5, 2014, at 3:02 PM, Roland, Perry D. (pdr4h) <<a href="mailto:pdr4h@eservices.virginia.edu">pdr4h@eservices.virginia.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div lang="EN-US" link="blue" vlink="purple" style="font-family: SourceSansPro-Regular; font-size: 18px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
<div class="WordSection1" style="page: WordSection1;">
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-family: Calibri, sans-serif;"> </span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-family: Calibri, sans-serif;">The plot thickens --<o:p></o:p></span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-family: Calibri, sans-serif;"> </span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-family: Calibri, sans-serif;"><someElement xml:base=”blah”><o:p></o:p></span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-family: Calibri, sans-serif;"> </span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-family: Calibri, sans-serif;">is *not* the same as<o:p></o:p></span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-family: Calibri, sans-serif;"> </span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-family: Calibri, sans-serif;"><someElement base=”blah”><o:p></o:p></span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-family: Calibri, sans-serif;"> </span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-family: Calibri, sans-serif;">The behavior you describe is definitely *incorrect* because it removes the base attribute from the XML namespace. In the 2nd element above, the base attribute is in the no-name/null namespace because the “xml:”
prefix is missing.<o:p></o:p></span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-family: Calibri, sans-serif;"> </span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-family: Calibri, sans-serif;">--<o:p></o:p></span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-family: Calibri, sans-serif;">p.<o:p></o:p></span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-family: Calibri, sans-serif;"> </span></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<span style="font-family: Calibri, sans-serif;"> </span></div>
<div style="border-style: none none none solid; border-left-color: blue; border-left-width: 1.5pt; padding: 0in 0in 0in 4pt;">
<div>
<div style="border-style: solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding: 3pt 0in 0in;">
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<b><span style="font-size: 10pt; font-family: Tahoma, sans-serif;">From:</span></b><span style="font-size: 10pt; font-family: Tahoma, sans-serif;"><span class="Apple-converted-space"> </span>mei-l [<a href="mailto:mei-l-bounces+pdr4h=virginia.edu@lists.uni-paderborn.de">mailto:mei-l-bounces+pdr4h=virginia.edu@lists.uni-paderborn.de</a>]<span class="Apple-converted-space"> </span><b>On
Behalf Of<span class="Apple-converted-space"> </span></b>Andrew Hankinson<br>
<b>Sent:</b><span class="Apple-converted-space"> </span>Thursday, September 04, 2014 3:31 PM<br>
<b>To:</b><span class="Apple-converted-space"> </span>Music Encoding Initiative<br>
<b>Subject:</b><span class="Apple-converted-space"> </span>Re: [MEI-L] XML Namespaces in MEI<o:p></o:p></span></div>
</div>
</div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<o:p> </o:p></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
The “magic” in my case seems to be that libxml2 is silently stripping out xml: prefixes, but keeping all others intact.<o:p></o:p></div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<o:p> </o:p></div>
</div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
So if I set an attribute on an object to be “base” with a namespace and prefix of “xml” it will render the tag as:<o:p></o:p></div>
</div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<o:p> </o:p></div>
</div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<someElement base=“blah”><o:p></o:p></div>
</div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<o:p> </o:p></div>
</div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
But if I set the same attribute with a namespace and prefix of “pfx” it will render it as:<o:p></o:p></div>
</div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<o:p> </o:p></div>
</div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<someElement pfx:base=“blah”><o:p></o:p></div>
</div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<o:p> </o:p></div>
</div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
So I just wanted to confirm that there wasn’t something about prefixes that I wasn’t getting.<o:p></o:p></div>
</div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<o:p> </o:p></div>
</div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
-Andrew<o:p></o:p></div>
<div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
On Sep 4, 2014, at 3:22 PM, Kőmíves Zoltán <<a href="mailto:zolaemil@gmail.com" style="color: purple; text-decoration: underline;">zolaemil@gmail.com</a>> wrote:<o:p></o:p></div>
</div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<br>
<br>
<o:p></o:p></div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
Here's the magic:<span class="Apple-converted-space"> </span><a href="http://www.w3.org/XML/1998/namespace" style="color: purple; text-decoration: underline;">http://www.w3.org/XML/1998/namespace</a><span class="Apple-converted-space"> </span>a.k.a "by definition"
:)<o:p></o:p></div>
</div>
<div>
<p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<o:p> </o:p></p>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
2014-09-04 19:38 GMT+01:00 Roland, Perry D. (pdr4h) <<a href="mailto:pdr4h@eservices.virginia.edu" target="_blank" style="color: purple; text-decoration: underline;">pdr4h@eservices.virginia.edu</a>>:<o:p></o:p></div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
What he said. :-)<br>
<br>
Namespace-aware software should "automagically" support the XML namespace. Have a look at<span class="Apple-converted-space"> </span><a href="http://www.informit.com/articles/article.aspx?p=31837&seqNum=9" target="_blank" style="color: purple; text-decoration: underline;">http://www.informit.com/articles/article.aspx?p=31837&seqNum=9</a>.<o:p></o:p></div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<br>
--<br>
p.<br>
<br>
<br>
> -----Original Message-----<br>
> From: mei-l [mailto:<a href="mailto:mei-l-bounces@lists.uni-paderborn.de" style="color: purple; text-decoration: underline;">mei-l-bounces@lists.uni-paderborn.de</a>] On Behalf Of<o:p></o:p></div>
</div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
> Johannes Kepper<br>
> Sent: Thursday, September 04, 2014 2:34 PM<br>
> To: Music Encoding Initiative<o:p></o:p></div>
</div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
> 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<o:p></o:p></div>
</div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
> that did care about namespaces...) followed that rule. xml:base should work<br>
> as you described, yes. Just like xml:lang...<o:p></o:p></div>
<div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
><br>
> jo<br>
><br>
> Am 04.09.2014 um 20:29 schrieb Andrew Hankinson<br>
> <<a href="mailto:andrew.hankinson@mail.mcgill.ca" style="color: purple; text-decoration: underline;">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" style="color: purple; text-decoration: underline;">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" style="color: purple; text-decoration: underline;">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" style="color: purple; text-decoration: underline;">http://www.w3.org/XML/1998/namespace</a>"<br>
> >> xmlns="<a href="http://www.music-encoding.org/ns/mei" target="_blank" style="color: purple; text-decoration: underline;">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" style="color: purple; text-decoration: underline;">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" style="color: purple; text-decoration: underline;">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" style="color: purple; text-decoration: underline;">http://www.w3.org/XML/1998/namespace</a>"<br>
> >> > xmlns="<a href="http://www.music-encoding.org/ns/mei" target="_blank" style="color: purple; text-decoration: underline;">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" style="color: purple; text-decoration: underline;">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>
> >> ><span class="Apple-converted-space"> </span><a href="mailto:mei-l@lists.uni-paderborn.de" style="color: purple; text-decoration: underline;">mei-l@lists.uni-paderborn.de</a><br>
> >> ><span class="Apple-converted-space"> </span><a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" target="_blank" style="color: purple; text-decoration: underline;">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a><br>
> >> _______________________________________________<br>
> >> mei-l mailing list<br>
> >><span class="Apple-converted-space"> </span><a href="mailto:mei-l@lists.uni-paderborn.de" style="color: purple; text-decoration: underline;">mei-l@lists.uni-paderborn.de</a><br>
> >><span class="Apple-converted-space"> </span><a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" target="_blank" style="color: purple; text-decoration: underline;">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a><br>
> ><br>
> > _______________________________________________<br>
> > mei-l mailing list<br>
> ><span class="Apple-converted-space"> </span><a href="mailto:mei-l@lists.uni-paderborn.de" style="color: purple; text-decoration: underline;">mei-l@lists.uni-paderborn.de</a><br>
> ><span class="Apple-converted-space"> </span><a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" target="_blank" style="color: purple; text-decoration: underline;">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a><br>
><br>
><br>
> _______________________________________________<br>
> mei-l mailing list<br>
><span class="Apple-converted-space"> </span><a href="mailto:mei-l@lists.uni-paderborn.de" style="color: purple; text-decoration: underline;">mei-l@lists.uni-paderborn.de</a><br>
><span class="Apple-converted-space"> </span><a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" target="_blank" style="color: purple; text-decoration: underline;">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" style="color: purple; text-decoration: underline;">mei-l@lists.uni-paderborn.de</a><br>
<a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" target="_blank" style="color: purple; text-decoration: underline;">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a><o:p></o:p></div>
</div>
</div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<o:p> </o:p></div>
</div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
_______________________________________________<br>
mei-l mailing list<br>
<a href="mailto:mei-l@lists.uni-paderborn.de" style="color: purple; text-decoration: underline;">mei-l@lists.uni-paderborn.de</a><br>
<a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" style="color: purple; text-decoration: underline;">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a><o:p></o:p></div>
</div>
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;">
<o:p> </o:p></div>
</div>
</div>
</div>
_______________________________________________<br>
mei-l mailing list<br>
<a href="mailto:mei-l@lists.uni-paderborn.de" style="color: purple; text-decoration: underline;">mei-l@lists.uni-paderborn.de</a><br>
<a href="https://lists.uni-paderborn.de/mailman/listinfo/mei-l" style="color: purple; text-decoration: underline;">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a></div>
</blockquote>
</div>
<br>
</div>
</body>
</html>