Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 8th, 2006, 11:01 AM
Registered User
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default A problem with predicate in XSLT1.0:(

Hi,

The XSLT snippet i'm working on is as follows:

<xsl:variable name="AvailableBORDERtgIdList">
       <xsl:choose>
.
.
.

<xsl:otherwise>

              $allBORDERtgIdList [(not(ATTR/trunkgroup_id = $UsedBORDERtgIdList/ATTR/tg_id)) and ((ATTR/remote_id = $PSTN_IPSW_CAS/ATTR/id) or ($PBX and contains(ATTR/remote_id, substring($PBX/ATTR/id,1,string-length($PBX/ATTR/id)-2))) or ((ATTR/remote_id = $MSC/ATTR/id) and (ATTR/capability = 'VOICE')) )]

 </xsl:otherwise>
       </xsl:choose>
      </xsl:variable>



Now as u guessed, the problem is in the $PBX 'OR' part of the predicate! the string functions used wud take just the first instance and hence certain nodes of allBORDERtgIdList are not obtainable in AvailableBORDERtgIdList !!:( do we have a workaround for this in XSLT 1.0?

Any help wud b greatly appreciated!

Thanks in advance:)
Suresh K

 
Old March 8th, 2006, 01:13 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Try to look at your posting from other people's point of view. Do you seriously imagine that anyone can look at this expression, with no information about its context, and tell you what's wrong.

"Now as u guessed" [sic]. No, I didn't guess anything. It's total gibberish.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
grouping problem at xslt1.0 joshuaa XSLT 4 July 15th, 2008 08:08 AM
NESTED GROUPING USING XSLT1.0 jhansib4u Classic ASP XML 0 November 19th, 2007 09:12 AM
Complex predicate question dcheslow XSLT 4 February 25th, 2007 02:21 PM
Predicate question pdamer XSLT 3 November 19th, 2003 11:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.