This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: In Tears... (learning XPath)



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]