This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Change side="recto" to t:side="recto" and it should work.

Note that you will get page breaks for the first section at
level 2, 3, etc. as well. Is that what you intended?  Your test
needs to test for parent being chapter (or appendix if you
use those).

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: <martin.gautier@myrnham.co.uk>
To: <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, December 10, 2003 10:40 AM
Subject: Re: [docbook-apps] Identify first <section>?


> >>
> >> <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?
> >
> >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
>
> My source now has the "$". It did originally but must have disappeared
> during one of my many jiggles to get it to work...
>
> Unfortunately I'm still not getting anywhere.
>
> test="not($node/preceding-sibling::section)" does actually check all
> sibling elements before node right? ie. in:
>
> <chapter>
>    <title>
>    <chapterinfo>..</>
>    <section>                <-- if here
>    <section>
>
> ..will check <title> and <chapterinfo> to return "true"?
>
> >:0(
>
> Mart
>
>
> To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit
http://www.oasis-open.org/mlmanage/.
>
>


To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]