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

Re: forming a link w/ arguments?

Subject: Re: forming a link w/ arguments?
From: "cutlass" <cutlass@xxxxxxxxxxx>
Date: Tue, 13 Nov 2001 12:10:20 -0000
xsl php arguments
----- Original Message -----
From: "Michael" <mogmios@xxxxxxxxxxxxxxxxx>




> I've been trying to figure out how I might turn this..
>
> <LINK>
>   <BASE>http://mysite.com/index.php</BASE>
>   <ARG NAME="image_id" VALUE="3"/>
>   <ARG NAME="search_id" VALUE="6"/>
>   <ARG NAME="page" VALUE="1"/>
>   <TEXT>My link</TEXT>
> </LINK>
>


<a>
<xsl:attribute name="href">
<xsl:value-of select="//BASE"/>?
<xsl:for-each select="//ARG">
<xsl:value-of select="@NAME"/>=<xsl:value-of select="@VALUE"/>&amp;
</xsl:for-each>
</xsl:attribute>

</a>


something like the above, remember though u might also generate some
whitespace so put it all on one line ( instead of indented as shown above)

cheers, jim fuller

> into..
>
> <A HREF="mysite.com/index.php?image_id=3&search_id=6&page=1">My link</A>
>
> Of course there can be any number of args and their names depend upon what
> part of the program the link is working with. The part I seem to be having
> trouble with is generating the arguments. I can do a fixed number but am
> not sure how to work multiple instances inside an argument.
>
> Thanks.
>
>
>  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.