|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








