Re: Speaking of @select

On Tue, 10 Oct 2017 00:48:04 +0200,
Norman Walsh wrote:
> 
> [1  <text/plain; utf-8 (quoted-printable)>]
> Hi folks,
> 
> Here’s an interesting issue with document properties. You’d think that
> p:identity would be about the simplest possible step to specify with
> respect to document properties: copy them.
> 
> However. Consider:
> 
>   <p:load href="image.png"/>
> 
>   <p:identity>
>     <p:with-input port="source" select="p:document-properties-document(.)"/>
>   </p:identity>
> 
> Ouch! The input to p:identity is an image/png and the output is application/xml!
>

From my perspective the input to p:identity is the function
p:document-properties-document() applied to the image/png arriving at
the source port. I.e. a application/xml.

 -- David

> 
> I haven’t worked out what to do about it, but it actually happened in
> real life just yesterday.
> 
>                                         Be seeing you,
>                                           norm
> 
> -- 
> Norman Walsh
> Lead Engineer
> MarkLogic Corporation
> Phone: +1 512 761 6676
> www.marklogic.com
> [2 signature.asc <application/pgp-signature (7bit)>]
> 3B296D51CC185A3B created at 2017-10-10T00:48:04+0200 using DSA

-- 
David Maus M.A.
Okerstraße 5 ~ 38300 Wolfenbüttel ~ GERMANY
http://dmaus.name
PGP Key 0x27023DFCE78FF66C

Received on Wednesday, 11 October 2017 06:52:07 UTC