xsl-list
[Top] [All Lists]

accessing attributes of a node

2005-01-18 12:11:26
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="{(_at_){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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>