xsl-list
[Top] [All Lists]

RE: xsl/xml question

2003-03-03 20:26:36
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(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
Jarno(_dot_)Elovirta(_at_)nokia(_dot_)com
Sent: Monday, March 03, 2003 2:40 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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



<Prev in Thread] Current Thread [Next in Thread>