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

Re: xsl:if and xsl:when

Subject: Re: xsl:if and xsl:when
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 30 Mar 2000 15:57:32 GMT
Re: xsl:if and xsl:when
> I am using the saxon parser to convert to HTML and 
> maybe its does not support advance syntax under test.  Or maybe its the
> operator (me) that has it wrong.

saxon like any other system has the odd bug, but it is probably the most
complete xsl system there is, so I would guess that it is the operator.

Given no information what the source tree looks like, it's hard to guess
what the queries should be.

but...

<xsl:when test="contains (@obj.id,'../packet/illust')">

This is testing if the current element has an obj.id that contains that
string as a substring of the attribute value, so it is true
on <image obj.id="xxxx../packet/illustyyy'> and false on <image/> I
suspect that isn't what you want but perhaps it is?

David


 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.