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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concatenation

Status
Not open for further replies.

skiteley

Programmer
Sep 3, 2003
1
GB
Hi,

I'm new to this XML stuff and I need to use a stylesheet to create a hyperlink from an xml file

i.e
my file contains an <item_id> tag and I need to transform this into

<a href=&quot;../content2/getItem.jsp?BI_ID=nnnn&quot;>Further Details</a>

where nnnn is the <item_id>.

I'm sure this should be straight forward but I can't find anything that works.

Thanks

Steve
 
hi,


<xsl:template match=&quot;item_id&quot;>


<a>
<xsl:attribute name=&quot;href&quot;>

<xsl:text>../content2/getItem.jsp?BI_ID=</xsl:text>
<xsl:value-of select=&quot;.&quot;/>

</xsl:attribute>

Further details
</a>

</xsl:template>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top