Re: [xep-support] Total Page count wanted

From: Dave Pawson <davep@dpawson.co.uk>
Date: Fri May 26 2006 - 12:36:31 PDT

On Fri, 2006-05-26 at 19:44 +0100, Dave Pawson wrote:
> On Fri, 2006-05-26 at 11:07 -0700, Jost Klopfstein wrote:
> > Hi Dave,
> >
> > One way is to render to the XEP intermediate format and to parse this XML
> > format.
> > This solution works with all back-ends.
>
> Thanks Jost.
> I'll chase the documentation.

In case others want it.

$java -classpath lib/xep.jar -Dcom.renderx.xep.CONFIG=xep.xml
com.renderx.xep.XSLDriver -fo lists.fo -out -at lists.xml

This to process lists.fo into lists.xml

The xslt is then processed:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xep="http://www.renderx.com/XEP/xep"
                version="1.1">

  

  <xsl:output method="xml" indent="yes" encoding="utf-8"/>

  <xsl:template match="/">
    <pages> <xsl:value-of select="count(//xep:page)"/></pages>
  </xsl:template>
 

</xsl:stylesheet>

and the output is
<pages>2</pages>

Boring. But it works.

xep gives me a warning:

[warning] Unrecognized XEP output option OUT: setting ignored

I'm not sure why.

Any help there please?

Information from reference.html, section 9.4

-- 
Regards, 
Dave Pawson
XSLT + Docbook FAQ
http://www.dpawson.co.uk
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Fri May 26 13:14:08 2006

This archive was generated by hypermail 2.1.8 : Fri May 26 2006 - 13:14:09 PDT