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

RE: a href incorporation

Subject: RE: a href incorporation
From: "Daniel Newman" <daniel.newman@xxxxxxxxxxx>
Date: Thu, 19 Apr 2001 10:05:39 +0100
href address
Try

<xsl:template match="Grasslands/LinksForGenus" priority= "1">
<h3>
<a name="Label0045"></a>
<font color="#00007F"><i>Links for the genus:</i></font>
</h3>
<ul>
<xsl:for-each select="Link">
<li><font color="#008000">
<a href="{Address/@href}"><xsl:value-of select="Address"
/></a>;&#xA;<xsl:text />
<xsl:value-of select="Name" />
</font></li>
</xsl:for-each>
</ul>
</xsl:template>

Daniel.

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Tanzila
Mohammad
Sent: 19 April 2001 09:57
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Fw:  a href incorporation


I have the following xml:
<Grasslands>
<LinksForGenus>
<Link>
<Address href="http://www.bbc.co.uk">BBC</Address>
<Name>This is the home page for the BBC </Name>
</Link>
</LinksForGenus>
</Grasslands>

I want the following output: (bullet-pointed)

* BBC (as a hyperlink); This is the home page for the BBC

My xsl:
<xsl:template match="Grasslands/LinksForGenus" priority= "1">
<h3>
<a name="Label0045"></a>
<font color="#00007F"><i>Links for the genus:</i></font>
</h3>
<ul>
<xsl:for-each select="Link">
<li><font color="#008000">
<xsl:value-of select="Address" />;&#xA;<xsl:text />
<xsl:value-of select="Name" />
</font></li>
</xsl:for-each>
</ul>
</xsl:template>


<xsl:template match="Grasslands/LinksForGenus">
</xsl:template>

The problem is incorporating the "a href".

Thanks.

Tanz



 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.