- From: Henry S. Thompson <ht@inf.ed.ac.uk>
- Date: Thu, 11 Jan 2007 17:51:11 +0000
- To: public-xml-processing-model-wg <public-xml-processing-model-wg@w3.org>
-----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-----
Received on Thursday, 11 January 2007 17:51:40 UTC