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

RE: variable as attribute value of fo:block

Subject: RE: variable as attribute value of fo:block
From: Stuart Brown <sbrown@xxxxxxxxxxxxx>
Date: Thu, 19 Sep 2002 14:36:33 +0100
fo block padding before
Hi Thomas,

When you define a variable, if you use the select attribute (as opposed to
the element content), and want to populate it with a text string, then you
must double-up inverted commas, like this:

<xsl:variable name="padding_vor_gross" select="'1cm'"/>
                                               ^   ^
If you don't do this, then it is trying to populate the variable with a node
called 1cm (which is illegal anyway), not a string of '1cm'.

Try this, and <fo:block padding-before="{$padding_vor_gross}">.

Cheers,

Stuart

> -----Original Message-----
> From: thomas [mailto:thomas.lohbeck@xxxxxx]
> Sent: 19 September 2002 14:16
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  variable as attribute value of fo:block
> 
> 
> I like to have:
> <xsl:variable name="padding_vor_gross" select="1cm"/>
> 
> <fo:block padding-before="$padding_vor_gross">
> or
> <fo:block padding-before="{$padding_vor_gross}">
> or
> <fo:block padding-before="($padding_vor_gross)">
> 
> Can you call a variable only in the <xsl:value-of> argument?
> 
> No Luck so far.
> 
> thank you
> thomas
> 
> 
>  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

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.