M
McSwell
I have an XML file that looks something like this:
------------------------
<?xml ...?>
<!DOCTYPE ...>
<src:fragment id="foo" ...>
<Ph:Item> some stuff </Ph:Item>
<Ph:Item> some more stuff </Ph:Item>
....
<Ph:Item> still more stuff </Ph:Item>
</src:fragment>
----------------------
I want to xinclude all the children of the root element into another
XML file. I've been trying things like
<xi:include href="firstFileName" xpointer="foo/1"/>
However, if(!) I'm understanding correctly, this would only xinclude
the *first* child of the element named 'foo'. Instead, I want to
xinclude *all* the children. I would have thought that this
<xi:include href="firstFileName" xpointer="foo/*"/>
would work, but it generates an error:
XPointer evaluation failed: #foo/*
All the variants of this that I've tried also fail.
How do I xinclude all children of the specified element?
Mike Maxwell
CASL/ U MD
------------------------
<?xml ...?>
<!DOCTYPE ...>
<src:fragment id="foo" ...>
<Ph:Item> some stuff </Ph:Item>
<Ph:Item> some more stuff </Ph:Item>
....
<Ph:Item> still more stuff </Ph:Item>
</src:fragment>
----------------------
I want to xinclude all the children of the root element into another
XML file. I've been trying things like
<xi:include href="firstFileName" xpointer="foo/1"/>
However, if(!) I'm understanding correctly, this would only xinclude
the *first* child of the element named 'foo'. Instead, I want to
xinclude *all* the children. I would have thought that this
<xi:include href="firstFileName" xpointer="foo/*"/>
would work, but it generates an error:
XPointer evaluation failed: #foo/*
All the variants of this that I've tried also fail.
How do I xinclude all children of the specified element?
Mike Maxwell
CASL/ U MD