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

Ferdinand Soethe

Current Thread


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.
First Name
Last Name
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.