This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: how to do hyperlink with xml + xsl?
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: how to do hyperlink with xml + xsl?
- From: Jia Ming Li <jmingli at ilux dot com>
- Date: Wed, 9 Feb 2000 21:41:11 -0400 (EST)
- Reply-To: xsl-list at mulberrytech dot com
Hi Ben,
Your xsl works... if there no other tables exists in the xml file...
on my xml file there are other tables like
<SALES>
<SALESPERSON>
<CUSTOMER>ACME1</CUSTOMER>
<BYTESENT>234232</BYTESENT>
<DATE>1</DATE>
</SALESPERSON>
<TEST>This is <A href="http://www.yahoo.com">yahoo</A> test.</TEST>
<SALES>
and your xsl returns:
<a href="">
ACME1
234232
1
This is <a href="http://www.yahoo.com">yahoo</a> test.
</a>
Is it possible to just select from the <TEST> tag of the XML with the
hyperlink?
or is it another better way the rewrite my XML file for this approch?
-----Original Message-----
From: Ben Robb [mailto:Ben@cscape.com]
Sent: Wednesday, February 09, 2000 5:17 AM
To: 'xsl-list@mulberrytech.com'
Subject: RE: how to do hyperlink with xml + xsl?
You have to do it the long way:
<xsl:template match="A">
<a>
<xsl:attribute name="href">
<xsl:value-of select="@href"/>
</xsl:attribute>
<xsl:apply-templates />
</a>
</xsl:template>
<xsl:template match="text()">
<xsl:value-of select="."/>
</xsl:template>
This should give the required output...
> -----Original Message-----
> From: Nilay.Shah@Powaimail.ltitl.com
> [mailto:Nilay.Shah@Powaimail.ltitl.com]
> Sent: 09 February 2000 13:01
> To: xsl-list@mulberrytech.com
> Subject: Re: how to do hyperlink with xml + xsl?
>
>
>
>
> The suggested solution doesnt work in IE5. Can anyone know
> how to do this
> in IE5?????????
>
>
>
>
>
> David Rocher <djr@netgates.co.uk> on 02/09/2000 04:35:54 PM
>
> Please respond to xsl-list@mulberrytech.com
>
> To: xsl-list@mulberrytech.com
> cc: (bcc: Nilay Shah/LTITL)
>
> Subject: Re: how to do hyperlink with xml + xsl?
>
>
>
>
> On Tue, Feb 08, 2000 at 06:46:03PM -0800, Jia Ming Li wrote:
> > <TEST>This is <A HREF="www.yahoo.com">yahoo</A> test.</TEST>
>
> <xsl:template match="test/a[@href]">
> <xsl:copy/>
> </xsl:template>
>
> David.
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
>
>
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list