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

RE: when question - am I doing something stupid or is this a

Subject: RE: when question - am I doing something stupid or is this a limi tation / processor bug?
From: "Rigby, David" <rigbyd@xxxxxxxxxx>
Date: Fri, 7 Apr 2000 10:06:57 +0100
rigby test
Thanks very much. I'll look again at my XML - perhaps the insertion of the
currentModel node is causing the problem.

David

> -----Original Message-----
> From:	Linda van den Brink [SMTP:lvdbrink@xxxxxxx]
> Sent:	Friday, April 07, 2000 8:46 AM
> To:	'xsl-list@xxxxxxxxxxxxxxxx'
> Subject:	RE: when question - am I doing something stupid or is this a
> limi tation / processor bug?
> 
> > Tje problem is that the test inside the xsl:when never succeeds.  
> > I tried all 
> > manner of combinations of @ and $ tokens in desperation and useing 
> > test="@model=@applicableModel" succeeds in all cases 
> > (presumably because 
> > the value of applicableModel is being assigned to model 
> > within the test 
> > itself..?) but nothing else yields any results, even when 
> > we're testing 
> > model = 8800 against applicableModel = 8800.
> 
> I tried your code and after removing a few typos :-) this worked: 
> 
> <?xml version="1.0"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> 
> 
> <xsl:template match="schematics">
>   <xsl:variable name="model" select="modelnumber"/>
>   <xsl:variable name="applicableModel" 
> select="documentation/currentModel"/>
> 
>   <xsl:choose>
>     <xsl:when test="$model=$applicableModel">succeeded
>     </xsl:when>
>   </xsl:choose>
> </xsl:template>
> 
> </xsl:stylesheet>
> 
> On this test source I created: 
> 
> <?xml version="1.0" ?>
> <schematics>
>    <modelnumber id="1">8000</modelnumber>
> 
>    <documentation>
>    	<currentModel>8000</currentModel>
>    </documentation>
> </schematics>
> 
> The when test succeeded, so something else must be going wrong. 
> 
> Linda
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.