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

Re: p:set-attributes

From: Norman Walsh <ndw@nwalsh.com>
Date: Sun, 29 Apr 2007 17:39:22 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <874pmy3lo5.fsf@nwalsh.com>
/ Alex Milowski <alex@milowski.org> was heard to say:
| Yes, this kind of construct is essential to building streaming pipelines.

Such as? (I'm not doubting you, I just don't see it; probably I'm
being clueless.)

| If we do, should we make it p:copy-attributes and have it not delete the
|> originals (if you want to delete the originals, you can do it with a
|> preceding step).
|
| Sometimes you don't know what attributes are on the target element.

delete match="element/@*"

| And should we add a "target" option so that the attributes can be set
|> on any element not only the root element?
|
| Probably.
|
| If it is a match pattern, then some uses won't stream.  I'm OK with that.
|
| If it is just an element name, then all cases would stream.

I'd rather not introduce a new kind of expression.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | The great man is he who has not lost
http://nwalsh.com/            | the heart of a child.-- Mencius

Received on Sunday, 29 April 2007 21:39:33 GMT

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