You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Chris <ch...@yahoo.com> on 2005/01/29 02:39:10 UTC
converting text in an element to attributes.
Anybody know a transformer or something to take attributes
out of the text() of an element and get them into
real attributes. I want to trap this one element called
<input> and parse it's text and create real attributes,
but then copy the rest of the document as it.
>From this:
<element1>
<element2>
<input>attr1="value 1" attr2="value 2" More text<b>and elements</b></input>
</element2>
<element2>
</element2>
</element1>
To This:
<element1>
<element2>
<input attr1="value 1" attr2="value 2">More text<b>and elements</b></input>
</element2>
<element2>
</element2>
</element1>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org