xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] forming a link w/ arguments?


Subject: RE: [xsl] forming a link w/ arguments?
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Tue, 13 Nov 2001 13:01:07 -0000

> 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>
> 
> into..
> 
> <A 
> HREF="mysite.com/index.php?image_id=3&search_id=6&page=1">My link</A>
> 
<a><xsl:attribute name="href">
<xsl:value-of select="concat(BASE, '?')"/>
<xsl:for-each select="ARG">
  <xsl:if test="position()!=1">&amp;</xsl:if>
  <xsl:value-of select="concat(@NAME, '=', @VALUE)"/>
</xsl:for-each>
</xsl:attribute>
</a>

Mike Kay
Software AG

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor