Re: Preserving the base URI through a p:xslt transformation

  Which makes XProc in need of a step to set the base URI of a
document (like p:identity, except that it sets the base URI of the
document on the result port).

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/


On 22 March 2013 16:15, Norman Walsh wrote:
> Romain Deltour writes:
>>> I'm not sure either. Investigating.
>>
>> To clarify, the results of my own investigation are:
>>
>> 1. Jostein's pipeline behaves as expected.
>> XSLT 2.0 says about xxl:copy-of "If the copied node is subsequently
>> attached as a child to a new element or document node, the final copy
>> of the node inherits its base URI from its parent node", so the
>> element takes the base URI of the result document, which is the same
>> as the input document, which the base URI of the inline doc hence the
>> XProc document's base URI (phew!).
>
> Right.
>
> If you specify select="/*" on the input, you get the "right" result
> because that gets you to a document base URI that's correct.
>
>> 2. There's a bug in Calabash which does not force the base URI of the
>> p:xslt result to the value of the output-base-uri option if present.
>
> Yes. And I've reproduced that bug outside the context of XML Calabash
> and sent it to saxon-help. Either there's a Saxon bug, or I'm using
> the API wrong. Time will tell.
>
>> Hopefully the results of your investigation will concur :)
>
> Yep. Thanks, Romain!
>
>                                         Be seeing you,
>                                           norm
>
> --
> Norman Walsh
> Lead Engineer
> MarkLogic Corporation
> Phone: +1 512 761 6676
> www.marklogic.com

Received on Friday, 22 March 2013 15:26:51 UTC