XSLT 2.0 functions in a dynamic page view

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

XSLT 2.0 functions in a dynamic page view

mjgraham
Hi,

I have a dynamic XSLT page view (.xhtml with xsl:version="2.0" at the
top) which includes some XSLT 2.0 functions (date/time manipulation) and
this previously worked with OPS (build from March). However, using the
nightly build from August 7, this no longer works: how I can force OPS
to process my page view XSLT with xslt-unsafe (Saxon 8.1.1 + external
functions) instead of xslt which is what I think is happening?

An example piece of manipulation is:

<xhtml:p>Found <xsl:value-of select="/form/results/hits"/> hits in
<xsl:value-of
select="get-seconds-from-dayTimeDuration(xs:time(/form/results/endtime)
- xs:time(/form/results/starttime))"/> seconds.</xhtml:p>

    Cheers,

    Matthew



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XSLT 2.0 functions in a dynamic page view

Erik Bruchez
Administrator
Matthew,

This has probably nothing to do with oxf:unsafe-xslt, but everything to
do with the fact that Saxon is now aligned on a more recent XSLT 2.0
recommendation.

Try checking the latest functions here:

   http://www.w3.org/TR/xpath-functions/

-Erik

Matthew Graham wrote:

> Hi,
>
> I have a dynamic XSLT page view (.xhtml with xsl:version="2.0" at the
> top) which includes some XSLT 2.0 functions (date/time manipulation) and
> this previously worked with OPS (build from March). However, using the
> nightly build from August 7, this no longer works: how I can force OPS
> to process my page view XSLT with xslt-unsafe (Saxon 8.1.1 + external
> functions) instead of xslt which is what I think is happening?
>
> An example piece of manipulation is:
>
> <xhtml:p>Found <xsl:value-of select="/form/results/hits"/> hits in
> <xsl:value-of
> select="get-seconds-from-dayTimeDuration(xs:time(/form/results/endtime)
> - xs:time(/form/results/starttime))"/> seconds.</xhtml:p>
>
>    Cheers,
>
>    Matthew
--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws