|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: How to create active hyperlinks from xml file
Pat,
To get a bulleted list (in HTML) of urls from:
> <favourites>
> <url>www.iol.ie></url>
> <url>www.deafblind.com></url>
> <url>www.download.com></url>
> </favourites>
Try
<xsl:template match="favourites">
<ul><xsl:apply-templates/></ul>
</xsl:template>
<xsl:template match="url">
<li><a href="{.}"><xsl:value-of select="."/></a></li>
</xsl:template>
(not tested, but it should work)
May be a bit more efficient to use a variable for the <url> content, but I am a bit lazy tonight.
Good luck,
Martin Sévigny
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








