Hi All
I'm just finishing up my first XSL that uses prince. Got auto-toc generaed which I'm real pleased about but have a few problems with headers.
Each chapter has a @ref attribute (the chapter name) and I need this to appear in the header on every page.
e.g. <Chapter ref="Agreement">
My xsl contains the following:
My CSS contains:
I have two problems:
Duplicate ID's
I get an error saying that id "header" already exists (because there are 3 chapters, it's in the HTML 3 times). How can I eliminate this duplicate id error?
Alternatively, is there another way to get the chapter name in the header with a 2px grey rule beneath it
No TOC Header
I want my TOC page to have the same header style as the other pages and read "Table of Contents" where the chapter name normally appears. How can I achieve this?
Thanks in advance
mark
I'm just finishing up my first XSL that uses prince. Got auto-toc generaed which I'm real pleased about but have a few problems with headers.
Each chapter has a @ref attribute (the chapter name) and I need this to appear in the header on every page.
e.g. <Chapter ref="Agreement">
My xsl contains the following:
xsl:template match="Chapter">
<div id="header" class="header">
<h2 class="wide caps">
<xsl:value-of select="@ref"/>
</h2>
<hr class="header"/>
</div>
</xsl:template>
My CSS contains:
@top {
content: flow(header);
}
#header {flow: static(header);
I have two problems:
Duplicate ID's
I get an error saying that id "header" already exists (because there are 3 chapters, it's in the HTML 3 times). How can I eliminate this duplicate id error?
Alternatively, is there another way to get the chapter name in the header with a 2px grey rule beneath it
No TOC Header
I want my TOC page to have the same header style as the other pages and read "Table of Contents" where the chapter name normally appears. How can I achieve this?
Thanks in advance
mark