[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE:
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|