> From: Mougenot Sylvain [mailto:[EMAIL PROTECTED]] > > Aim: > The controller have to pass the selected contents (as XML Strings) > to the vue XSL throught domify. > > Problem: > Domify treat the XML String as a CData. I mean it masks "<" ">",... > so that I've no more XML structure at the output.
Right, that's as intended. Think of the model as a DOM, not an XML stream - strings in the nodes (or within SAX events) are not re-interpreted as XML. There are a couple easy ways to do what you want to do. The first (and more complicated) way is to parse the XML yourself using the JAXP api in your Controller and put the DOM objects in your model. If you want fine control of the model, this is probably your best bet. If you're fine with the XML string itself being the whole model, then the easiest way to do this by far is to use the "trivial" view type. You simply set the String (or a Reader to the XML stream) as the model (by calling ControllerContext.setModel() ). It will be passed into the transform process and processed automatically. I suspect the second option is what you're looking for. <view type="trivial"> <transform path="blah.xsl"/> </view> The documentation for TrivialViewFactory: http://mav.sourceforge.net/api/org/infohazard/maverick/view/TrivialViewF actory.html Jeff Schnitzer [EMAIL PROTECTED] ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf [INVALID FOOTER]
