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
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