RE: [xsl] xsl/xml question

Subject: RE: [xsl] xsl/xml question
From: "Wendy Ang" <wendy@xxxxxxxx>
Date: Mon, 3 Mar 2003 19:26:36 -0800
Dear all,

I've found the solution:

		    Product Name: <a>
		    <xsl:attribute name="href">    
	    		 product_detail.asp?id=<xsl:value-of
select="ProductID"/>
		    </xsl:attribute>	    
		    <xsl:value-of select="ProductName"/></a><br/>

Thanks for all the replies.


Wendy

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
Jarno.Elovirta@xxxxxxxxx
Sent: Monday, March 03, 2003 2:40 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl] xsl/xml question

Hi,

...

> and I need to transform it with the corresponding XSL 
> template using the
> transformNode of MicrosoftXMLDOM
> 
> the XSL Template goes:
> 
> <?xml version='1.0'?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl";>
> 

...

> 
> now, if you can see this part:
> 
>     Product Name: <a href="$ProductID"><xsl:value-of
> select="ProductName"/></a><br/>
> 		    Product Code: <xsl:value-of
> select="ProductCode"/><br/>
> 
> I'm trying to get the value of ProductID and assign it to the "href"
> attribute of the element <a>... anyone knows how to solve 
> this problem?

The XSLT solution would be AWTs or xsl:attribute, but because you use
Microsoft's XSL, they may not be available in that language. Refer to
Microsoft tutorials and specs for their language, or, if you choose to
switch over to XSLT, use AWTs or xsl:attribute.

Cheers,

Jarno - Neurotic Fish: Need

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




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


Current Thread