Re: [docbook-apps] Identify first <section>?

From
Bob Stayton <>
Date
2003-12-10T17:11:30+00:00
ID
00cd01c3bf41$99753280$6401a8c0@slimbob
Thread
Re: [docbook-apps] Identify first <section>?
It looks like you are missing a "$" in front of "node" in
the test expression.  So it is looking for an element
named node instead of a parameter of that name.

Bob Stayton
Sagehill Enterprises



----- Original Message ----- 
From: <>
To: <>
Sent: Wednesday, December 10, 2003 8:16 AM
Subject: [docbook-apps] Identify first <section>?


> I hope someone can help. I don't seem to be able to identify whether my
> <section> is the first child of <chapter> or not...
>
> Docbook document is of the form:
>
> <book>
>   <chapter>
>     <chapterinfo>...</>
>     <section role="L1">...</>
>       <section role="L2">...</>
>     <section role="L1">...</>
>   </chapter>
> </book>
>
> When the FO stylesheet finds the first <section> within a <chapter> (ie.
> line 4 above), I want to force a new odd page. I'm trying to do this using
> a method outlined in:
> http://lists.oasis-open.org/archives/docbook/200211/msg00135.html
>
> In my compiled titlepage specification file I have:
>
> <t:titlepage t:element="section" t:wrapper="fo:block">
> ...
>   <t:titlepage-before side="recto">
>     <xsl:param name="node" select="."/>
>     <xsl:if test="not(node/preceding-sibling::section)">
>       <fo:block break-before="page"/>
>       <fo:block font-size="14pt" font-family="verdana"
> font-color="red">DEBUG:</fo:block>
>     </xsl:if>
>   </t:titlepage-before>
>
> The <xsl:if test="not(node/preceding-sibling::section)"> doesn't seem to
> pick up what I'm after. Any suggestions?
>
> Mart
>
> To unsubscribe from this list, send a post to
, or visit
http://www.oasis-open.org/mlmanage/.
>
>