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

Re:

Subject: Re:
From: Phil Lanch <phil@xxxxxxxxxxxxxxx>
Date: Thu, 11 Nov 1999 15:00:41 +0000
Re:
David Hemmingsson wrote:
> 
> 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!]">

Try putting:

<card id="First Card" title="{doc/title}">

The {} enclose an attribute value template
- that means that contents of the {} are interpreted as an expression
- see [7.6.2].

>                 Some text
>         </card>
>         .
>         .
>         </xsl:template>
> </xsl:stylesheet>
> -----------------------------
> I'm quite sure that there is a simple solution, ...

Yup.

-- 

cheers

phil


 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.