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

accessing attributes of a node

Subject: accessing attributes of a node
From: "Markus Gamperl" <markus.gamperl@xxxxxx>
Date: Tue, 18 Jan 2005 20:11:26 +0100 (MET)
accessing attributes in xsl
Hello experts!

I have got the following template:

<xsl:template match="h2 | h3 | h4 | h5 | h6">
<fo:block id="{translate(@link_id,'#','x')}" font-size="{$h2_size}">
...
</fo:block>
</xsl:template

Every node (h2, h3, h4,...) has a "size"-attribute (h2 as h2_size, h3 has
h3_size,...) which tells the font size the node should be formatted.

I have tried the following (not working):
...
<fo:block id="{translate(@link_id,'#','x')}" font-size="{@{name(.)}_size}">
...

How can i access the hx_size attribute of each node?

Thanks
Markus

-- 
Sparen beginnt mit GMX DSL: http://www.gmx.net/de/go/dsl

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.