[xml] xmllint, xinclude, and namespaces
- From: Sebastian Rahtz <sebastian rahtz oucs ox ac uk>
- To: xml gnome org
- Subject: [xml] xmllint, xinclude, and namespaces
- Date: Tue, 21 Nov 2006 21:10:37 +0000
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>?
xsltproc gets it right. If I run an identity transform with --xinclude,
I get
<a xmlns="http://www.tei-c.org/ns/1.0">
<p xmlns="">vide</p>
</a>
--
Sebastian Rahtz
Information Manager, Oxford University Computing Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
OSS Watch: JISC Open Source Advisory Service
http://www.oss-watch.ac.uk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]