Re: In Tears... (learning XPath)

Subject: Re: In Tears... (learning XPath)
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 14 Jul 2000 18:22:48 GMT
Your description wasn't clear enough to give clear advice but...

> (I am building an href for an anchor in HTML).

well if the source looked like

<section><title id="x">like this<title>....

and you wanted to get
<h1><a name="x">like this</a></h1>

then you'd go

<xsl:template match="section">
 <h1><a name="{title/@id}"><xsl:value-of select="title"/></a></h1>

That is an answer to a question but I'm not sure if its the question you
asked:-) 

David


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


Current Thread