RE:

Subject: RE:
From: Ben Robb <Ben@xxxxxxxxxx>
Date: Thu, 11 Nov 1999 14:16:07 -0000
Try:

<card id="First Card">
   <xsl:attribute name="title">
       <xsl:value-of select="//doc/title"/>
   </xsl:attribute>
   Some text
</card>


Rgs,

Ben Robb


> -----Original Message-----
> From: David Hemmingsson [mailto:david.hemmingsson@xxxxxxxx]
> Sent: 11 November 1999 13:45
> To: XSL-list
> Subject: 
> 
> 
> Hi!
> I need to do something like this:
> XML:
> 
> <?xml version = "1.0" ?>
> <doc>
> 	<title>The title</title>
> </doc>
> 
> 
> XSL:
> 
> <xsl:stylesheet...>
> 	<xsl:template match="/">
> 	.
> 	.
> 	<card id="First Card" title="[HERE I NEED THE CONTENT OF THE
> <title>-TAG!]">
> 		Some text
> 	</card>
> 	.
> 	.
> 	</xsl:template>
> </xsl:stylesheet>
> -----------------------------
> I'm quite sure that there is a simple solution, but I can't find any
> information of how to put XML-content in a variable and use it in the
> XSL-stylesheet (if now that is the solution).
> Any suggestions?
> 
> /David
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

**********************************************************************


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


Current Thread
  • RE:
    • Ben Robb - Thu, 11 Nov 1999 14:16:07 -0000 <=