5 Replies Latest reply on Jan 13, 2010 6:37 AM by mark lewis

    how to pretty print xml file verbatim

    mark lewis Newbie

      Hello,

      I have a string of xml (or a document) and I want to print it out tags and all, indented nicely, through rich faces.

       

      When I print the string using something like

       

      <h:outputText value="#{Welcome.nodeXML}" id="myXML" />

       

      naturally all the tags are in one big unreadable block.  I think I need an xslt processor but I'm not sure how to implement this with rich faces jsf.

      Can someone tell me the nuts and bolts?

      Can I use <xsl:blah> tags in my index.jsp jsf file?  I've not had much luck with that so far.

       

      Thanks

      Mark