Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 18033 invoked from network); 30 May 2000 15:00:43 -0000 Received: from qhars002.nortelnetworks.com (HELO qhars002.nortel.com) (192.100.101.19) by locus.apache.org with SMTP; 30 May 2000 15:00:43 -0000 Received: from zhard00m.europe.nortel.com (actually zhard00m) by qhars002.nortel.com; Tue, 30 May 2000 15:56:26 +0100 Received: by zhard00m.europe.nortel.com with Internet Mail Service (5.5.2650.21) id ; Tue, 30 May 2000 15:56:19 +0100 Message-ID: <0979C0AA41FED111BCFB00204804FC130356110F@zhard000.europe.nortel.com> From: "Chris Newland" To: "'cocoon-users@xml.apache.org'" Subject: RE: how can I define a hyper link in xslt? Date: Tue, 30 May 2000 15:56:17 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BFCA47.34E851B4" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01BFCA47.34E851B4 Content-Type: text/plain; charset="iso-8859-1" Hi, I create links by using a template in my XSL style sheet: I use the following in my XML document to display the link: Hope this helps, Chris -----Original Message----- From: ling.shi@bi.no [mailto:ling.shi@bi.no] Sent: 30 May 2000 15:42 To: cocoon-users@xml.apache.org Subject: how can I define a hyper link in xslt? We use somedomain to define a hyper link in HTML. In the xml file, I have an element called "url" which is used to store the links. How can I make a style sheet to transfer the data into clickable hyper link in html? In the style sheet, I tried , failed with an exception. Any ideas are appreciated. --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org For additional commands, e-mail: cocoon-users-help@xml.apache.org ------_=_NextPart_001_01BFCA47.34E851B4 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: how can I define a hyper link in xslt?

Hi,

I create links by using a template in my XSL style = sheet:

<xsl:template = match=3D"my_link">
        <a = href=3D"{@url}"><xsl:value-of = select=3D"@name"/></a>
        <xsl:apply-templates/>
</xsl:template>

I use the following in my XML document to display the = link:

<my_link url=3D"login.xml" = name=3D"Log In"/>

Hope this helps,

Chris

-----Original Message-----
From: ling.shi@bi.no [mailto:ling.shi@bi.no]
Sent: 30 May 2000 15:42
To: cocoon-users@xml.apache.org
Subject: how can I define a hyper link in = xslt?


We use <a href=3D"http://somedomain.com">somedomain</a>= ; to define a hyper link in
HTML. In the xml file, I have an element called = "url" which is used to store the
links. How can I make a style sheet to transfer the = data into clickable hyper
link in html?

In the style sheet, I tried <a href=3Dxsl:value-of = select=3D"url"/></a> , failed
with an exception. Any ideas are appreciated.



---------------------------------------------------------------= ------
To unsubscribe, e-mail: = cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: = cocoon-users-help@xml.apache.org

------_=_NextPart_001_01BFCA47.34E851B4--