This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: URGENT error saxon Vs xalan
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] URGENT error saxon Vs xalan
- From: "Tanzila Mohammad" <tmohammad at entier-solutions dot com>
- Date: Fri, 18 May 2001 21:34:35 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi
My xml is as follows:
<dealership>
<dealer>
<dealerID>1</dealerID>
<rankID>3</rankID>
<name>Dealer A</name>
<address>17 Burton Street, Melton Mowbray, Leicestershire LE13
1EA</address>
<telephone>01664 562302</telephone>
<fax>01664 561106</fax>
<email
href="mailto:%20info@lenmanchester.com">info@lenmanchester.com</email>
<openingHours>
<weekday>9.00am - 6.00pm Monday - Saturday</weekday>
<weekend>11.00am - 4.00pm Sunday</weekend>
</openingHours>
<servicesAvailable>
<service>Full servicing</service>
</servicesAvailable>
<accessoryShop>Full range of accessories</accessoryShop>
<brandLogos>
<logo src="images/Untitled-1.gif"></logo>
<logo src="images/Untitled-2.gif"></logo>
<logo src="images/Untitled-3.gif"></logo>
<logo src="images/Untitled-4.gif"></logo>
</brandLogos>
<dealerLogo
src="file:///C|/Documents%20and%20Settings/iweldon/My%20Documents/bikerseye-
030501/images/imagehere.jpg"></dealerLogo>
<franchisesAvailable>
<franchise>
<franchiseID>1</franchiseID>
<name>Yamaha</name>
<productList>
<product>
<productID>1</productID>
<name>Motorcyle</name>
<types>
<type>
<typeID>2</typeID>
<name>Super Bikes</name>
<items>
<item>
<itemID>2</itemID>
<name>model 1</name>
</item>
</items>
</type>
</types>
</product>
</productList>
etc..
</dealership>
My xsl:
<xsl:template match="name">
<tr>
<td bgcolor="#95FFEA">
<div align="center">
<a> <xsl:attribute name="href">type.jsp?dealerID=<xsl:value-of
select="$dealerID"/>&productID=<xsl:value-of
select="$productID"/>&franchiseID=<xsl:value-of
select="$franchiseID"/>&typeID=<xsl:value-of
select="preceding-sibling::typeID"/>&xmlresult=<xsl:value-of
select="$xmlresult"/>&fourthhtml=<xsl:value-of select="$fourthhtml"/>
</xsl:attribute>
<b>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<xsl:value-of select="."/>
</font>
</b>
</a>
</div>
</td>
</tr>
</xsl:template>
I call the template as follows (within template match on root)
<xsl:apply-templates
select="/dealership/dealer[dealerID=$dealerID]/franchisesAvailable/franchise
[franchiseID=$franchiseID]/productList/product[productID=$productID]/types/t
ype/name"/>
I was using saxon and an output was produced, however, I now have to use
xalan ( the application I have uses java classes which are using a xalan
processor) and there is an error:
"Exception occurred unknown error in XPath" is being returned
Can someone provide me with a solution?
Tanz
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list