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

Re: Creating elements

From: mozer <xmlizer@gmail.com>
Date: Mon, 3 Nov 2008 13:43:29 +0100
Message-ID: <21d9ade60811030443s7a2fd5c9v9d435b3f44e2feae@mail.gmail.com>
To: Toman_Vojtech@emc.com
Cc: public-xml-processing-model-comments@w3.org

I find overkill to add a feature for creating dynamic content

If rename is not sufficient, then use a simple XSLT stylesheet to do the job

Xmlizer

On Mon, Nov 3, 2008 at 1:15 PM,  <Toman_Vojtech@emc.com> wrote:
>
> 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, ...)?
>
>
> Regards,
> Vojtech
>
>
Received on Monday, 3 November 2008 12:51:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:28:26 UTC