[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 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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]