<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:black;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black">The plot thickens --
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black"><someElement xml:base=”blah”><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black">is *not* the same as<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black"><someElement base=”blah”><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black">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></p>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black">--<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black">p.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri","sans-serif";color:black"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> mei-l [mailto:mei-l-bounces+pdr4h=virginia.edu@lists.uni-paderborn.de]
<b>On Behalf Of </b>Andrew Hankinson<br>
<b>Sent:</b> Thursday, September 04, 2014 3:31 PM<br>
<b>To:</b> Music Encoding Initiative<br>
<b>Subject:</b> Re: [MEI-L] XML Namespaces in MEI<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">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></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><someElement base=“blah”><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">But if I set the same attribute with a namespace and prefix of “pfx” it will render it as:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><someElement pfx:base=“blah”><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">So I just wanted to confirm that there wasn’t something about prefixes that I wasn’t getting.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">-Andrew<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal">On Sep 4, 2014, at 3:22 PM, Kőmíves Zoltán <<a href="mailto:zolaemil@gmail.com">zolaemil@gmail.com</a>> wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal">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" :)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">2014-09-04 19:38 GMT+01:00 Roland, Perry D. (pdr4h) <<a href="mailto:pdr4h@eservices.virginia.edu" target="_blank">pdr4h@eservices.virginia.edu</a>>:<o:p></o:p></p>
<p class="MsoNormal">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>.<o:p></o:p></p>
<div>
<p class="MsoNormal"><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<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> Johannes Kepper<br>
> Sent: Thursday, September 04, 2014 2:34 PM<br>
> To: Music Encoding Initiative<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">> 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></p>
</div>
<p class="MsoNormal">> 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></p>
<div>
<div>
<p class="MsoNormal">><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><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">_______________________________________________<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">https://lists.uni-paderborn.de/mailman/listinfo/mei-l</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>