Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

embedding xsl:value-of

Status
Not open for further replies.

GIGN

Programmer
Oct 6, 2000
1,082
NZ
Is there any way to embed something in another statement, for example, a document has an URL, which I wan to turn into a link.

Can I get xsl stylesheet to do this, or will I need to use the server?

I need something like:

<a href=&quot;<xsl:value-of select=&quot;url&quot; />&quot;>GO</a>



Excuse my ignorance, it's my first day ;-)
 
<link>
<url> <comment>Visit test.com!</comment>
</link>

then for the stylesheet

<xsl:template match=&quot;link&quot;>
<a href=&quot;{url}&quot;><xsl:value-of select=&quot;comment&quot;/></a>
</xsl:template>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top