Re: [xep-support] Total Page count wanted

From: Dave Pawson <>
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 -out -at lists.xml

This to process into lists.xml

The xslt is then processed:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl=""


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

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


and the output is

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

Dave Pawson
XSLT + Docbook FAQ
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
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