OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

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 
>> 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.


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:

   <section>                <-- if here

..will check <title> and <chapterinfo> to return "true"?



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]