[XOM-interest] remove xmlinclude attributes

Elliotte Harold elharo at ibiblio.org
Thu May 28 09:46:58 EDT 2009


On Wed, May 27, 2009 at 6:41 PM, Jon Stockdill <jon.stockdill at gmail.com> wrote:
> When I use the XInclude class, it produces xml like:
> <?xml version="1.0" encoding="UTF-8"?>
> <parentxml>
>    <title>XML TITLE</title>
>    <Element xmlns="" xml:base="file:///path/to/child.xml">
>        <includedxml active="true" />
>    </Element>
> </parentxml>
>
> Is it possible to perform the include w/o the attributes:
> xmlns="" xml:base="file:///path/to/child.xml"


xml:base is required by the spec to reproduce the correct infoset.
However the xmlns="" looks weird. Is that actual, real output you're
showing me? Or is maybe there a default namespace declaration on the
parent document and not one on the child? If so, then it's necessary.
If not, I suspect I can delete the xmlns="".


-- 
Elliotte Rusty Harold
elharo at ibiblio.org


More information about the XOM-interest mailing list