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

Using variables in select

Subject: Using variables in select
From: Ferdinand Soethe <xsl-list@xxxxxxxxxx>
Date: Tue, 14 Feb 2006 14:05:31 +0100
using variables in select
I need to process two different selections (attached below). One that
is filtered and one (actually several) that are filtered by
[@Kursart='Bildungsurlaub'] and similar conditions.

Now searching the list I found that I can create a more elegant
soltion by using a variable in this fashion [@Kursart=$aFilter].

What I haven't found is:

        how can I create this in a way that it works also for the
        first variation that doesn't want the filter?

        Is there a way to use pattern matching such as

        $aFilter="*" (which doesn't work!)

Or is this a situation where I need to go for evaluate?
        
Any ideas much appreciated,
Ferdinand Soethe

-------------
Current code

<xsl:for-each select="set:distinct(Kurstext/@Titel|
        Abschnitt[BereichsTitelEinfuegen and BereichsTitelEinfuegen!='immer'
        and
        BereichsTitelEinfuegen!='nurWeb']/Kurstext/@Titel)">
        <xsl:call-template name="UebersichtslistenpunktErzeugenHTML" />
 </xsl:for-each>
 
 <xsl:for-each select="set:distinct(Kurstext[@Kursart='Bildungsurlaub']/@Titel|
        Abschnitt[BereichsTitelEinfuegen and BereichsTitelEinfuegen!='immer'
        and
        BereichsTitelEinfuegen!='nurWeb']/Kurstext[@Kursart='Bildungsurlaub']/@Titel)">
        <xsl:call-template name="UebersichtslistenpunktErzeugenHTML" />
 </xsl:for-each>






--
Ferdinand Soethe

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.