generally, we have somethink like that:

<?xml version="1.0" encoding="UTF-8"?>
<root>
  <abra>
    <abrakadabra>blah<abrakadabra>
    <abrakadabra2>blah2<abrakadabra2>
 </abra>
</root>

there is need to put to this xml some elements filled with data that we got
from database.
xsp is too simple for that. but... but 2.2...
result have to be like this:

<?xml version="1.0" encoding="UTF-8"?>
<root>
  <abra>
    <abrakadabra>blah<abrakadabra>
    <abrakadabra2>blah2<abrakadabra2>
 </abra>
 <block id="1">
 <foo>
    <boo>blah<boo>
    <boo2>blah2<boo2>
 </foo>
....
 <foo>
    <boo>blah<boo>
    <boo2>blah2<boo2>
 </foo>
 </block>

 <block id="2">
 <foo>
    <boo>blah<boo>
    <boo2>blah2<boo2>
 </foo>
....
 <foo>
    <boo>blah<boo>
    <boo2>blah2<boo2>
 </foo>
 </block>
</root>

I'm really hope that there is no need to use xslt:( why we just can't to
create DOM Document in some bean and response it to client?
-- 
View this message in context: 
http://www.nabble.com/-2.2--put-to-xml-some-new-elements-tp19760139p19760139.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to