W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > January 2007

Re: A further benefit of a generalised Copy micro-operation component

From: Innovimax SARL <innovimax@gmail.com>
Date: Sat, 13 Jan 2007 14:46:08 +0100
Message-ID: <546c6c1c0701130546r159134ddt3807614fa172bd64@mail.gmail.com>
To: "Henry S. Thompson" <ht@inf.ed.ac.uk>
Cc: public-xml-processing-model-wg <public-xml-processing-model-wg@w3.org>

It's more a "put" than a "copy" function
moreover, the switching between source and target is not obvious to me



On 1/11/07, Henry S. Thompson <ht@inf.ed.ac.uk> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> The availability of 'here' documents for input will make a Copy
> component a very simple and useful way to add constant items to a
> document.  For example:
>
>  <p:step type="Copy">
>   <p:input port="target">...</p:input>
>   <p:input port="source">
>    <p:inline>
>     <dummy author="Henry S. Thompson" date="2006-10-01"/>
>    </p:inline>
>   </p:input>
>   <p:parameter name="from" value="/dummy/@*"/>
>   <p:parameter name="to" value="//article"/>
>  </p:step>
>
> would add fixed author and date attributes to all 'article' elements of
> the document on the 'target' port.
>
> I'm a bit unsure about port names -- 'source' and 'target' are natural
> for a copy operation, but going that route means using 'source' for
> what is at least in this case clearly _not_ the primary input. . .
>
> ht
> - --
>  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
>                      Half-time member of W3C Team
>     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
>             Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
>                    URL: http://www.ltg.ed.ac.uk/~ht/
> [mail really from me _always_ has this .sig -- mail without it is forged spam]
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.6 (GNU/Linux)
>
> iD8DBQFFpnkPkjnJixAXWBoRAhqLAJ4odIVSRstWsGiUESQiPheRbULGVACfeHsj
> u7fvUmpjUMbE6PAs7t8nfWs=
> =rWT6
> -----END PGP SIGNATURE-----
>
>


-- 
Innovimax SARL
Consulting, Training & XML Development
9, impasse des Orteaux
75020 Paris
Tel : +33 8 72 475787
Fax : +33 1 4356 1746
http://www.innovimax.fr
RCS Paris 488.018.631
SARL au capital de 10.000 
Received on Saturday, 13 January 2007 13:46:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:49 GMT