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

RE: Select statement within HREF

Subject: RE: Select statement within HREF
From: "SHEIKH Sajjad" <Sajjad.SHEIKH@xxxxxxxxxxx>
Date: Fri, 31 Oct 2003 12:34:02 +0100
href xsl
Thanks guys for the prompt response.

I am still making some mistakes, therefore it does not seem to work.

Here is the complete style sheet

<xsl:template match="livelink//llnode">

<table>

<tr> 
<xsl:apply-templates/>
</tr>

<tr>

<xsl:for-each select="*">
<xsl:sort select="@name"/>

<xsl:choose>
<xsl:when test="@objname">

<td>
    <a>	
    <xsl:attribute name="href">
      <xsl:value-of select="@name"/>.xml
    </xsl:attribute>
    </a>	  
</td>

  <br/>
</xsl:when>
</xsl:choose>

</xsl:for-each>

</tr>

</table>

</xsl:template>

</xsl:stylesheet>

OUTPUT
______

If the value @name is AFC, then it will show a hyper link on AFC and
link will be AFC/file.xml

Regards,

/s


-----Original Message-----
From: andrew.curry@xxxxxxxxxxxx [mailto:andrew.curry@xxxxxxxxxxxx] 
Sent: 30 October 2003 12:15
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Select statement within HREF


One way is


<xsl:attribute name="href">
<xsl:value-of select="@name"/>
</xsl:attribute>


PA Sport RnD

Andrew Curry
Software Developer

Telephone: 01430 455545
Website:        http://www.pa.press.net

PA News Limited:
Bridgegate, Howden, East Yorkshire, DN14 7AE

Registered Office:
PA News Limited, 292 Vauxhall Bridge Road, London SW1V 1AE. Registered
in England No. 3891053


----- Original Message ----- 
From: "SHEIKH Sajjad" <Sajjad.SHEIKH@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, October 31, 2003 11:13 AM
Subject:  Select statement within HREF


> Hi
>
> I want to use a select statement within anchor hyper ref[=a href].
>
> Example:
> <a href="(<xsl:value-of select="@name/>)/(file.xml)">"><xsl:value-of
> select="@name"/></a>
>
> So the final result will be as following
>
> For example <xsl:value-of select="@name"/> returns AFC
> It will show <a href="AFC/file.xml">AFC</a>
>
> Any help will be appreciated.
>
> Regards,
>
> /s
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


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


______________________________________________________________
This message has been scanned for all viruses by BTnet VirusScreen. The
service is delivered in partnership with MessageLabs.

This service does not scan any password protected or encrypted
attachments.  

If you are interested in finding out more about the service, please
visit our website at
http://www.btignite.com/internetservices/btnet/products_virusscreen.htm
==============================================================

 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.