This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XSL
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] XSL
- From: "chris markiewicz" <cmarkiew at commnav dot com>
- Date: Wed, 28 Mar 2001 10:36:42 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
the correct syntax is {$CONTACT_ID}
but i think you want to use an xsl:value-of here...i think you only use the
{} when you're inside <>.
chris
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of
Peter.FLYNN@syntegra.bt.co.uk
Sent: Wednesday, March 28, 2001 9:56 AM
To: XSL-List@lists.mulberrytech.com
Subject: [xsl] XSL
Can anyone see the reason as to why this doesn't work quite right.
I'm using Saxon v5.5.1 and its running in a servlet web application.
I get:
Fatal error reported by XML parser: required character (found "=") (expected
";")
URL: file:/D:/weblogic/myserver/contactManager/xsl/shortOrganisations.xsl
Line: 16
Column: 74
org.xml.sax.SAXParseException: required character (found "=") (expected ";")
at com.icl.saxon.Stylesheet.process(Stylesheet.java:615)
...
The line(s) in the XSL that its referring to looks as follows:
<xsl:variable name="CONTACT_ID"><xsl:value-of select="."/></xsl:variable>
<A>
<xsl:attribute name="HREF" saxon:disable-output-escaping="yes"
xmlns:saxon="http://icl.com/saxon">
<xsl:text>/ContactManager/contact?query=getXMLDetailedOrganisationByOrgId&st
ylesheet=yes&org_id=${CONTACT_ID}</xsl:text>
</xsl:attribute>
View Organisation
</A>
Is it complaining about the & or something else? (Or have I written the
above bit of XSL wrong?)
Regards,
Peter
****************************************************************************
**
Check us out at http://www.syntegra.com
***********************************************************************
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list