W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > November 2008

[closed] Re: Creating elements

From: Norman Walsh <ndw@nwalsh.com>
Date: Thu, 13 Nov 2008 12:39:14 -0500
To: public-xml-processing-model-comments@w3.org
Message-ID: <m28wrn5xvh.fsf@nwalsh.com>
Toman_Vojtech@emc.com writes:

> Hi all,
> I was just wondering what is the most straightforward way to create an
> element whose name is generated dynamically. The simplest solution I
> managed to come up with is this:
> <p:rename>
>   <p:input port="source">
>     <p:inline><foo/></p:inline>
>   </p:input>
>   <p:with-option name="new-value" select="..."/>
> </p:rename>
> To me, this seems both elegant ("Nice, I can use p:rename for that") and
> confusing at the same time ("Why do I have to use p:rename for
> *creating* content!?")...
> What is your opinion on this? Is it OK, or should the spec provide some
> functionality specifically for these types of use cases (by adding a new
> step, or by extending the functionality of the existing steps, ...)?

The WG considered this and decided not to make any changes for V1.0

                                        Be seeing you,

Norman Walsh <ndw@nwalsh.com> | The best people usually owe their
http://nwalsh.com/            | excellence to a combination of
                              | qualities which might have been
                              | supposed incompatible.--Bertrand Russell

Received on Thursday, 13 November 2008 17:39:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:41:08 UTC