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

RE: URGENT error saxon Vs xalan

Subject: RE: URGENT error saxon Vs xalan
From: "Tanzila Mohammad" <tmohammad@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 18 May 2001 21:34:35 +0100
preceding sibling saxon error
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@xxxxxxxxxxxxxxxxx";>info@xxxxxxxxxxxxxxxxx</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"/>&amp;productID=<xsl:value-of
select="$productID"/>&amp;franchiseID=<xsl:value-of
select="$franchiseID"/>&amp;typeID=<xsl:value-of
select="preceding-sibling::typeID"/>&amp;xmlresult=<xsl:value-of
select="$xmlresult"/>&amp;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


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.