cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris <chri...@yahoo.com>
Subject converting text in an element to attributes.
Date Sat, 29 Jan 2005 01:39:10 GMT

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


Mime
View raw message