cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Curdt" <tcu...@dff.st>
Subject RE: Creating XML elements with dynamic names in XSP???
Date Fri, 11 Aug 2000 08:51:55 GMT
> > makeOutputString(dataName, dataValue) just returns a
> > String that looks like
> > <name>value</name>. But it doesnt work; this just
> > gets escaped and comes out
> > as text in the resulting XML, not elements! Is there
> > an xsl tag similar to
> > the xsl:element tag?
> 
> Yes there is. you can use <xsp:element> and
> <xsp:attribute> tags to generate elements and
> attributes. Look at XSP Processor documentation at
> xml.apache.org there are couple of examples it it.

I guess this is not what he needs...
...you need to create a DocumentFragment not a String
and then append this DocumentFragment to the current
node! Your String does not get parsed anymore!
--
Torsten


Mime
View raw message