Re: [xml] xmllint, xinclude, and namespaces



Sebastian Rahtz <sebastian rahtz oucs ox ac uk> writes:

Consider this:

[spqr-ibm]/tmp:cat x.xml
<?xml version="1.0" encoding="UTF-8"?>
<a xmlns="http://www.tei-c.org/ns/1.0";>
  <include href="a.xml" xmlns="http://www.w3.org/2001/XInclude"/>
</a>

[spqr-ibm]/tmp:cat a.xml
<p>vide</p>


[spqr-ibm]/tmp:xmllint --xinclude x.xml
<?xml version="1.0" encoding="UTF-8"?>
<a xmlns="http://www.tei-c.org/ns/1.0";>
  <p>vide</p>
</a>

Surely the result should show an empty namespace on the
include <p>?

Or a named one on the "a":

  <a xmlns:a="http://www.tei-c.org/ns/1.0";>
     <p>vide</p>
  </a>

I agree... looks odd.

Maybe I'm wrong tho.

-- 
Nic Ferrier
http://www.tapsellferrier.co.uk   for all your tapsell ferrier needs



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]