[jdom-interest] Off Topic - XSL (Xalan) question

Brett McLaughlin brett.mclaughlin at lutris.com
Mon Sep 18 09:24:33 PDT 2000


"Van Dooren, Damian" wrote:
> 
> I know this question is not directly related to JDom and for that I
> apologize, but I know someone here will have the answer I need.
> 
> I'm using JDom to create XML that I then process with XSL via Xalan. My XSL
> is very simple I'm not even adding any of the XML data to it yet. I have an
> <a> tag that the Xalan is dying on. This is the error I get:
> 
> org.apache.xalan.xslt.XSLProcessorException: The reference to entity
> "subaction"  must end with the ';' delimiter.
> 
> This is the line it is dying on:
> 
> <a
> href='http://localhost/login/ActionServer?action=loadpage&subaction=html&fil
> eName=client-inquiry.html'>Client Inquiry</a>
> 
> I've included the XSL and have commented out the offending line. If someone
> could point out what I've done wrong I would greatly appreciated it.
> 
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>                 version="1.0"
> >
>   <xsl:template match="/">
>     <html>
>       <head><title>Main Menu</title></head>
> 
>       <body bgcolor="#FFFFFF">
>         <h2>Main Menu</h2>
>         <p>
> <!-- Why doesn't it like this line?
>         <a
> href='http://localhost/login/ActionServer?action=loadpage&subaction=html&fil
> eName=client-inquiry.html'>Client Inquiry</a>
> -->

          <xsl:element name="a">
            <xsl:attribute name="href">
             
http://localhost/login/ActionServer?action=loadpage&subaction=html&fileName=client-inquiry.html
            </xsl:attribute>
            Client Inquiry
          </xsl:element>

>         </p>
>       </body>
>     </html>
>   </xsl:template>
> </xsl:stylesheet>

Try that and see if it works.

-Brett

> 
> -----
> Damian Van Dooren
> Information Technology
> The Investment Centre
> (519) 672-4389 x718
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com

-- 
Brett McLaughlin, Enhydra Strategist
Lutris Technologies, Inc. 
1200 Pacific Avenue, Suite 300 
Santa Cruz, CA 95060 USA 
http://www.lutris.com
http://www.enhydra.org



More information about the jdom-interest mailing list