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

> 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!).

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.

Hopefully the results of your investigation will concur :)

Romain.

On 22 mars 2013, at 14:32, Norman Walsh <ndw@nwalsh.com> wrote:

> Jostein Austvik Jacobsen <josteinaj@gmail.com> writes:
>> (I'm not sure if this is an XSLT question or if it's related to how
>> XProc handles base URIs)
> 
> I'm not sure either. Investigating.
> 
>                                        Be seeing you,
>                                          norm
> 
> -- 
> Norman Walsh
> Lead Engineer
> MarkLogic Corporation
> Phone: +1 512 761 6676
> www.marklogic.com

Received on Friday, 22 March 2013 14:25:26 UTC