Re: Anchestor of p:library?

> Am 30.12.2016 um 02:08 schrieb Norman Walsh <ndw@nwalsh.com>:
> 
> Achim Berndzen <achim.berndzen@xml-project.com> writes:
>> reading the 1.0 specs again, I stumbled on this sentence:
>> 
>> "If the p:library has no ancestors in the XProc namespace, then it
>> must have a version attribute.“
>> (https://www.w3.org/TR/xproc/#p.library)
>> 
>> How can a p:library have an ancestor (in XProc namespace)? Where is my mistake?
> 
> It can’t have ancestors in the XProc namespace, but it could have
> ancestors in another namespace if it was embedded somewhere.
> 
> Imagine, http://example.com/framework.xml:
> 
>  <some-envelope>
>    <instructions>
>      <p:library xml:id="test" version="1.0">…</p:library>
>    </instructions>
>  </some-envelope>
> 
> You could, in theory, I doubt its ever been tested in practice,
> import that library thusly:
> 
>  <p:import href="http://example.com/framework.xml#test"/>
> 
> That’s what that sentence is for :-)
> 

Thank you very much for your illuminating answer, Sir ;-))
Maybe this explanation should make it to the next version of the specs.

Will raise an issue on GitHub, so we remember to change the text.

Greetings from Germany,
Achim

------------------------------------------------
Achim Berndzen
achim.berndzen@xml-project.com

http://www.xml-project.com

Received on Friday, 30 December 2016 12:15:44 UTC