Re: [xsl] Total number of pages with XSL-FO

Subject: Re: [xsl] Total number of pages with XSL-FO
From: JBryant@xxxxxxxxx
Date: Thu, 14 Apr 2005 10:43:07 -0500
> So here is my next question: is there any way to see if an id
> exists in an FO document?
> 
> Nadia Swaby

Hi, Nadia,

Sure. You can do a test for it in either xsl:when or xsl:if. For example:

<xsl:if test="//@id='MyID'">
  <!-- Do something (perhaps apply certain templates) -->
</xsl:if>

Of course, if you can determine the exact path (not always possible 
because elements may be nested at different depths and so on), you can use 
the actual path instead of //.

HTH

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)

Current Thread