[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: Creating Hyperlinks using XSL and XML Part II


Subject: RE: Creating Hyperlinks using XSL and XML Part II
From: Dean Pignatare <deanp@xxxxxxxxxxxxxx>
Date: Wed, 7 Apr 1999 17:35:57 -0400

Again, forgot a quotation mark:

<xsl:template match="//person">
<a><xsl:attribute name="href"><xsl:value-of
select="name"/></xsl:attribute><xsl:value-of select="webpage"/></a>
</xsl:template>


> -----Original Message-----
> From: Douglas Nehring [mailto:dnehring@xxxxxxxxxxxxxxxxxx]
> Sent: Wednesday, April 07, 1999 1:51 PM
> To: xsl-list@xxxxxxxxxxxxxxxx
> Subject: Creating Hyperlinks using XSL and XML Part II
> 
> 
> Thanks for all the replies on how to do the hyperlinks using 
> attributes.
> What's been bugging me now is how to do it using a element.  
> For example:
> 
> <misc>
> 	<person>
> 		<name>
> 		Doug
> 		</name>
> 		<webpage>
> 		personal/doug/index.html
> 		</webpage>
> 	</person>
> </misc>
> 
> How do I create a hyperlink based on the webpage element that is with
> associated with the name element (i.e. Doug)
> 
> 
> Html equivalent I am looking to achieve: <a
> href="personal/doug/index.html">Doug</a>
> 
> I can do it fairly easily by making the webpage link an 
> attribute of the
> name, but curiosity now has the best of me as to how I can do 
> it this way.
> 
> Thanks once again.
> 
> Doug Nehring
> Nortel Networks
> MSL-100 Advanced Technology 
> Richardson, TX
> (972) 685-2096, ESN 445-2096
> 
> 
>  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
Keywords