Re: [xep-support] xpath functions

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Fri Aug 21 2009 - 10:44:09 PDT

At 2009-08-21 09:37 -0700, Dmitry Beransky wrote:
>We are migrating our document generation solution from Excel into
>FO/RenderX. Many of Excel functions are not supported by RenderX's
>XPath (e.g. round(<dec_number>, <precision>), max()).

That isn't a problem with RenderX in any way ... there is no 2-arity
round() function in XPath 1 or 2. There is a 2-arity
round-half-to-even(num,precision) function and both a 1-arity and a
2-arity max() function in XPath 2.

>What are my options?

Write your XML to XSL-FO transformation using XSLT 2 instead of XSLT
1, then render the resulting XSL-FO using RenderX without XSLT
transformation. I believe the RenderX tool is shipped with only an
XSLT 1 processor.

>Can I write my own function extensions and if so, how?

XSLT 2 supports user-defined functions but XSLT 1 does not.

There is a free excerpt on our web site of each of the XSLT book and
the XSL-FO book that we sell. The excerpt does not go into detail of
writing user functions in XSLT 2, but the excerpt does talk to the
data flow that distinguishes the XSLT processor responsibilities from
the XSL-FO processor responsibilities.

I hope this helps.

. . . . . . . . . . . . . . . Ken

--
Interested in these classes?  http://www.CraneSoftwrights.com/f/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/f/
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/f/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal
-------------------
(*) 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 Aug 21 11:03:51 2009

This archive was generated by hypermail 2.1.8 : Fri Aug 21 2009 - 11:03:53 PDT