XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Søren PedersenSubject: Advanced XSLT test
Author: Søren Pedersen
Date: 08 Aug 2007 04:56 AM
Hi guys

I am trying to figure out if there is a preceding Question element, with a ProjectVariable text starting with $matchedGroupProjectVariable. If there is none, then I need to do something... so I tried these if tests:

<xsl:if test="not(preceding::Question[starts-with(/ProjectVariable,$matchedGroupProjectVariable)])">

<xsl:if test="not($questionElement/preceding::Question[starts-with(/ProjectVariable,$matchedGroupProjectVariable)])" >

$questionElement is the current Question node

But none of these work :(

Can someone help me with this please? :)

Thanks a lot in advance
Greetings
Søren Pedersen

Posttop
Søren PedersenSubject: Advanced XSLT test
Author: Søren Pedersen
Date: 08 Aug 2007 04:59 AM
DOH!

I found the error right after posting...

I just had to remove the / infront of the ProjectVariable, so the working if is:

<xsl:if test="not(preceding::Question[starts-with(ProjectVariable,$matchedGroupProjectVariable)])">

Greets

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.