[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] RE: Test condition to check if the current node is the first child
Larry,
Thanks for the suggestion. But it does not work if white spaces exist
between <note> and <para> such
As
<note>
<para>
...
</para></note>
Sherwood
-----Original Message-----
From: Rowland, Larry [mailto:larry.rowland@hp.com]
Sent: Wednesday, February 24, 2010 6:04 PM
To: Sherwood Hu; docbook-apps@lists.oasis-open.org
Subject: [docbook-apps] RE: Test condition to check if the current node
is the first child
You might try testing for there being no preceding sibling:
preceding-sibling::node() = ''
Regards,
Larry Rowland
________________________________
From: Sherwood Hu [mailto:sherwood@morovia.com]
Sent: Wednesday, February 24, 2010 1:26 PM
To: docbook-apps@lists.oasis-open.org
Subject: [docbook-apps] Test condition to check if the current node is
the first child
I am customizing <para> and need to write test condition to check if its
parent has tag of <note> and this <para> is the first child of <note>
<xsl:if test="parent::note ">
<fo:inline
xsl:use-attribute-sets="admonition.title.properties"><xsl:apply-template
s select=".." mode="object.title.markup"/><xsl:text>
</xsl:text></fo:inline>
</xsl:if>
But how to write the second condition: the current <para> is the first
child of its parent?
Thanx.
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]