[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: attribute's value within href

Subject: Re: attribute's value within href
From: "Mar Fior" <pupipai@xxxxxxxxxxx>
Date: Fri, 18 Feb 2000 14:17:52 CET
xsl within href
Thanks for your help!!!
But the browser write me this:

Keyword xsl:text may not be used here.

Where is my mistake???
Please, help me!!!

My code is:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<body>
<CENTER>
<H1>Elenco PF: </H1>
<table border="1" width="75%" align="center" background="BACKGROUND.gif">
<TH>PF Code</TH>
<TH>PF Descr</TH>
<xsl:for-each select="PFSet/PF">
<TR ALIGN="CENTER">
<TD><A>
<xsl:attribute name="href">
<xsl:text>http://localhost:8080/pic?code=</xsl:text>
<xsl:value-of select="@code"/>
<xsl:text>&amp;gender=pf</xsl:text>
</xsl:attribute>
<xsl:text>Click me</xsl:text>
</A></TD>

etc....



Thanks again!
Marcella

From: "Brendan McKenna" <brendan@xxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Re: attribute's value within href
Date: Fri, 18 Feb 2000 11:11:01 +0000

Hello....

: Hi!
: I tried to put {@code}
: instead of element/@code within my href:
:
:
: <TD><A HREF="http://localhost:8080/pic?code={@code}&amp;gender=pf">Click
: me</A></TD>
:

How about this:

	<td><a>
	   <xsl:attribute name="href">
	      <xsl:text>http://localhost:8080/pic?code=</xsl:text>
	      <xsl:value-of select="@code"/>
	      <xsl:text>&amp;gender=pf</xsl:text>
	   </xsl:attribute>
	<xsl:text>Click me</xsl:text>
	</a></td>
:

Brendan

--
Brendan McKenna
Technical Director			Phone: +353-(0)61-338177 x4143
W3 Services Ltd.			  Fax: +353-(0)61-338065
Innovation Centre			Email: brendan@xxxxxx
National Technological Park
Limerick
Ireland



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list

______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.