Run:
  HelloXML
   

View:
hello.jsp
  hello.xsl
 
 

 

HelloXML Sample

This sample illustrates using JSPs to generate an XML document and transform the result using an XSL stylesheet. As the sample is merely illustrating the use of the <jml:transform> tag to apply a stylesheet to a (portion of a) JSP page the XML in the page is static. A real world example would use the JSP to dynamically generate all or a portion of the XML before proceeding with the transformation.