[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

href parameters in xsl; trouble with &

Subject: href parameters in xsl; trouble with &
From: Darryl.McCool@xxxxxxxxx
Date: Thu, 22 Jun 2000 12:07:35 -0400
href parameters
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.