|
[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Building Dynamic Urls
Subject: Re: Building Dynamic Urls
From: George Cristian Bina <george@xxxxxxx>
Date: Sat, 07 May 2005 11:26:02 +0300
|
> And in this case one would use <xsl:choose> rather than <xsl:if>
That was my first impulse too, but no, that will not add action if area
is present.
Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Aron Bock wrote:
You need to move the logic inside the variable, something like below:
<xsl:variable name="newURL">
<xsl:value-of select="$url"/>
<xsl:if test="child::area">
<xsl:text>?area=</xsl:text>
<xsl:value-of select="area"/>
</xsl:if>
<xsl:if test="child::action">
<xsl:text>?action=</xsl:text>
<xsl:value-of select="action"/>
</xsl:if>
<xsl:if test="child::page">
<xsl:text>?page=</xsl:text>
<xsl:value-of select="page"/>
</xsl:if>
</xsl:variable>
<xsl:value-of select="$newURL"/>
And in this case one would use <xsl:choose> rather than <xsl:if>
Regards,
--A
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/

|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
| RSS 2.0 |
|
| Atom 0.3 |
|
|