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

Hyperlink in xml to xsl

Status
Not open for further replies.

Bramvg

IS-IT--Management
Jan 16, 2001
135
BE
Hello all,

I receive a XML file from a customer which I have need to display inside a webpage (formatting xsl).

The problem is: the xml contains a hyperlink in html format (see example below) If I create a link using the code :
<xsl:template match="a">
<A href="{.}" target="_blank"><xsl:value-of select="."/></A>
</xsl:template>
,the result is a link to Yahoo instead of
is there a way to make the link work?
Many thanks in advance!


The source of the xml is (example):

<Paragraph StyleName="Source">
- <Text>
Source:
<a href=" - Google,
<a href=" </Text>
</Paragraph>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top