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

Re: Dynamic Tables

Subject: Re: Dynamic Tables
From: jderbyshire@xxxxxxxxxxx
Date: Wed, 26 Nov 2003 13:32:50 -0600
dynamic tables xsl
Ok, nevermind folks.  I got it to work using two variables, which I 
thought I read couldn't work because variables can't be assigned different 
values, and that they are more similar to "static" variables in other 
languages.

Jeff

owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx wrote on 11/26/2003 11:23:42 AM:

>> I thought the were going to be equal because they are part of the same 
>> context.  Is there a way to compare the pair-wise unequal $unique-rooms 
to 
>> say an a sibling node with similar data?  Is context part of the select 

>> statement?  If I select //topics/topic/location am I in the location 
>> context, if so can I compare "." to //topics/place/room data?  If not, 
>> please explain or send some keywords about my learning deficits so I 
may 
>> be engoogled.
>> 
>> Jeff
>> 
>> owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx wrote on 11/25/2003 04:21:59 PM:
>> 
>> >> jderbyshire@xxxxxxxxxxx wrote:
>> >> > <topics>
>> >> > <topic>
>> >> > <name>Introduction to LotusScript for Lotus Notes and 
Domino</name>
>> >> > <start>0800</start>
>> >> > <end>1000</end>
>> >> > <location>SW 1-4</location>
>> >> > </topic>
>> >> ...
>> >> >  <xsl:variable name="unique-rooms" 
>> >> >    select="//topics/topic/location[not(. = 
>> >> >           preceding::location)]" /> 
>> >> ...
>> >> >                 <xsl:for-each select="$unique-rooms">
>> >> ...
>> >> >                         <xsl:if test=". = ../location">
>> >> ...
>> >> > I don't understand 
>> >> > why the xsl:if is always true if I am comparing 2 different 
things,
>> >> You compare two equal things. The $unique-rooms is a set of all 
>> location
>> >> elements which are pairwise unequal. The context node for the test
>> >> expression is such an location element. The parent of this node has 
>> exactly
>> >> one location element as child, the element which is also the context 

>> node.
>> >> Therefore both . and ../location resolve to the same node, no 
surprise 
>> that
>> >> the comparision of their contents is always true.
>> >> 
>> >> J.Pietschmann
>> >> 
>> >> 
>> >>  XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>> >> 
>> 
>> 
>>  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.