[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] href parameters in xsl; trouble with &
I want to output file index HTML page from my XML file using an XSL style sheet, part of which is shown below. When a FILENAME is found, I want to create a link from that file to a servlet, contentHTMLGenerator and pass the following parameters: xmlfile=hooligan.xml (this will have to be changed to <xsl:value-of select ="."/> style=contenthtml.xsl htmlfile=contentEditor.html <xsl:template match="FILENAME"> <a> <xsl:attribute name="HREF"> http://localhost/servlet/contentHTMLGenerator?xmlfile=hooligan.xml&style=contenthtml.xsl&htmlfile=contentEditor.html </xsl:attribute> <xsl:value-of select="."/> </a> </xsl:template> My servlet generates contentEditor.html from contenthtml.xsl and hooligan.xml and automatically redirects the user to contentEditor.html The problem is that in generating the file index, the & (I think) is causing the following error: org.apache.xalan.xslt.XSLProcessorException: The reference to entity "style" must end with the ';' delimiter. How can I set up a hyperlink like this where the stylesheet treats the amphersands like amphersands and not entity references? XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|