Moser, Martin (Bbn) wrote:

The action returns a string, containing xml. This xml should be parsed in an xsl sheet, which is revieving the return value of this action.
But I am not able to access the xml tags in the style sheet.


Other folks have given you this answer, but I'm not sure its clear. Cocoon, and xslt, don't process XML per-se. They process SAX events and/or DOM. As such, you can't manipulate a string containing XML in the manner you are trying to do. Since '<' and '>' aren't allowed in "data" in XML, they are converted to &lt; and &gt;. A way around this is to use aggregation, although this would most likely mean converting your action into a generator. This would then be aggregated into the XML being fed to your stylesheet where you could manipulate it as you wish. In a way, this is more efficient because your generator doesn't need to actually generate XML, but can generate SAX events.

Ralph


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



Reply via email to