[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: XSL stylesheet issue - part 2 (newbie)
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 22 Oct 2024 07:56:17 -0000
On 22/10/2024 09:48, Frank Dissinger frank.dissinger@xxxxxxxxxxxx wrote:
There is still one issue. The "level" variable seems to remain empty. It is
supposed to be a number which indicates the nesting level of the heading and
should become part of the value of the "class" attribute of the TOC headings.


I don't think the variable is empty but to reference it in an attribute template you need e.g.

B <p class="toclev{$level}">

and not

B <p class="toclev{level}">

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member