Re: XInclude 1.1 issue?

On 2015-02-14 08:35, Norman Walsh wrote:
> Eric van der Vlist asks what the post-XInclude infoset is for this
> element:
>
>    <xi:include xmlns:my="MYNAMESPACE"
>                href="mydoc.xml" fragid="element(foo)"
>                my:root="true"/>
>
> when mydoc.xml is:
>
> <doc xmlns:my="YOURNAMESPACE">
>    <my:note xml:id="foo">
>      <my:x/>
>    </my:note>
> </doc>
>
> I'm not sure if the spec says. Nor am I sure what the right answer is.
>
> * Don't do the copy?
> * Resource error?
> * Something else?
>
>                                          Be seeing you,
>                                            norm
>

Wouldn't it be

   <my:note xml:id="foo" my2:root="true" xmlns:my="YOURNAMESPACE" 
xmlns:my2="MYNAMESPACE">
     <my:x/>
   </my:note>

where the "spelling" of the prefix "my2" is implementation dependent?

(Whether the spec says that is another issue.)

paul

Received on Saturday, 14 February 2015 16:02:47 UTC