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

Creating elements

From: <Toman_Vojtech@emc.com>
Date: Mon, 3 Nov 2008 07:15:15 -0500
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870D405659@CORPUSMX10A.corp.emc.com>
To: <public-xml-processing-model-comments@w3.org>

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:input port="source">
  <p:with-option name="new-value" select="..."/>

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, ...)?

Received on Monday, 3 November 2008 12:16:07 UTC

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