Hi,
In [1] Erik said that you could use certain extension functions in your theme.xsl. But when I try to use an extension function I get the following error:
XPath syntax error at char 22 on line 58 in {xxf:get-request-path()}: |
| Cannot find a matching 0-argument function named {http://orbeon.org/oxf/xml/xforms}get-request-path()
I found that this and some other functions are part of XXFormsIndependentFunctions which is used in PipelineFunctionLibrary which could hint that the function should be available in the them.xsl, but it isn't working.
I'm using a recent Orbeon 4.0 build. Do you have any idea what I could be doing wrong? I just added an xsl:value-of with the function call to test it.
Thanks in advance,
Nick Van den Bleeken Inventive Designers' Email Disclaimer: http://www.inventivedesigners.com/email-disclaimer -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Hi Nick,
Indeed theme-plain doesn't include those functions, but take a look at theme-examples.xsl, In any case, all you need to do to enable them is include then namespace: <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns:xh="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xmlns:xxf="http://orbeon.org/oxf/xml/xforms" xmlns:version="java:org.orbeon.oxf.common.Version"> Regards, Hank On Tue, Mar 19, 2013 at 6:20 AM, Nick Van den Bleeken <[hidden email]> wrote: > Hi, > > In [1] Erik said that you could use certain extension functions in your > theme.xsl. But when I try to use an extension function I get the following > error: > > XPath syntax error at char 22 on line 58 in {xxf:get-request-path()}: > | > | Cannot find a matching 0-argument function named > {http://orbeon.org/oxf/xml/xforms}get-request-path() > > > I found that this and some other functions are part of > XXFormsIndependentFunctions which is used in PipelineFunctionLibrary which > could hint that the function should be available in the them.xsl, but it > isn't working. > > I'm using a recent Orbeon 4.0 build. Do you have any idea what I could be > doing wrong? I just added an xsl:value-of with the function call to test it. > > Thanks in advance, > > Nick Van den Bleeken > > 1: http://mail-archive.ow2.org/ops-users/2012-07/msg00138.html > > > ________________________________ > > Inventive Designers' Email Disclaimer: > http://www.inventivedesigners.com/email-disclaimer > > > -- > 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 > OW2 mailing lists service home page: http://www.ow2.org/wws > -- Hank Ratzesberger XMLWerks.com -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
In reply to this post by Nick Van den Bleeken-2
Nick,
The functions are in the http://www.orbeon.com/oxf/pipeline namespace (usually declared as xmlns:p="http://www.orbeon.com/oxf/pipeline"). Could this explain the problem? -Erik On Tue, Mar 19, 2013 at 6:20 AM, Nick Van den Bleeken <[hidden email]> wrote: > Hi, > > In [1] Erik said that you could use certain extension functions in your > theme.xsl. But when I try to use an extension function I get the following > error: > > XPath syntax error at char 22 on line 58 in {xxf:get-request-path()}: > | > | Cannot find a matching 0-argument function named > {http://orbeon.org/oxf/xml/xforms}get-request-path() > > > I found that this and some other functions are part of > XXFormsIndependentFunctions which is used in PipelineFunctionLibrary which > could hint that the function should be available in the them.xsl, but it > isn't working. > > I'm using a recent Orbeon 4.0 build. Do you have any idea what I could be > doing wrong? I just added an xsl:value-of with the function call to test it. > > Thanks in advance, > > Nick Van den Bleeken > > 1: http://mail-archive.ow2.org/ops-users/2012-07/msg00138.html > > > ________________________________ > > Inventive Designers' Email Disclaimer: > http://www.inventivedesigners.com/email-disclaimer > > > -- > 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 > OW2 mailing lists service home page: http://www.ow2.org/wws > -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Hi Erik,
Thank you for the reply, that was indeed the problem, I expected them in http://orbeon.org/oxf/xml/xforms but they are in http://www.orbeon.com/oxf/pipeline Sorry for the stupid question... Nick On 20 Mar 2013, at 17:28, Erik Bruchez <[hidden email]> wrote: > Nick, > > The functions are in the http://www.orbeon.com/oxf/pipeline namespace > (usually declared as xmlns:p="http://www.orbeon.com/oxf/pipeline"). > Could this explain the problem? > > -Erik > > On Tue, Mar 19, 2013 at 6:20 AM, Nick Van den Bleeken > <[hidden email]> wrote: >> Hi, >> >> In [1] Erik said that you could use certain extension functions in your >> theme.xsl. But when I try to use an extension function I get the following >> error: >> >> XPath syntax error at char 22 on line 58 in {xxf:get-request-path()}: >> | >> | Cannot find a matching 0-argument function named >> {http://orbeon.org/oxf/xml/xforms}get-request-path() >> >> >> I found that this and some other functions are part of >> XXFormsIndependentFunctions which is used in PipelineFunctionLibrary which >> could hint that the function should be available in the them.xsl, but it >> isn't working. >> >> I'm using a recent Orbeon 4.0 build. Do you have any idea what I could be >> doing wrong? I just added an xsl:value-of with the function call to test it. >> >> Thanks in advance, >> >> Nick Van den Bleeken >> >> 1: http://mail-archive.ow2.org/ops-users/2012-07/msg00138.html >> >> >> ________________________________ >> >> Inventive Designers' Email Disclaimer: >> http://www.inventivedesigners.com/email-disclaimer >> >> >> -- >> 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 >> OW2 mailing lists service home page: http://www.ow2.org/wws >> > > > > -- > 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 > OW2 mailing lists service home page: http://www.ow2.org/wws ________________________________ Inventive Designers' Email Disclaimer: http://www.inventivedesigners.com/email-disclaimer -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Not stupid at all, it was a bit unclear what namespace to use.
Functions could be namespaced by type of function, and then you end up with a lot of namespace declarations. Instead so far we use a single namespace for extension functions in XForms, and another one in XPL/XSLT. -Erik On Fri, Mar 22, 2013 at 3:15 AM, Nick Van den Bleeken <[hidden email]> wrote: > Hi Erik, > > Thank you for the reply, that was indeed the problem, I expected them in http://orbeon.org/oxf/xml/xforms but they are in http://www.orbeon.com/oxf/pipeline > > Sorry for the stupid question... > > Nick > > On 20 Mar 2013, at 17:28, Erik Bruchez <[hidden email]> > wrote: > >> Nick, >> >> The functions are in the http://www.orbeon.com/oxf/pipeline namespace >> (usually declared as xmlns:p="http://www.orbeon.com/oxf/pipeline"). >> Could this explain the problem? >> >> -Erik >> >> On Tue, Mar 19, 2013 at 6:20 AM, Nick Van den Bleeken >> <[hidden email]> wrote: >>> Hi, >>> >>> In [1] Erik said that you could use certain extension functions in your >>> theme.xsl. But when I try to use an extension function I get the following >>> error: >>> >>> XPath syntax error at char 22 on line 58 in {xxf:get-request-path()}: >>> | >>> | Cannot find a matching 0-argument function named >>> {http://orbeon.org/oxf/xml/xforms}get-request-path() >>> >>> >>> I found that this and some other functions are part of >>> XXFormsIndependentFunctions which is used in PipelineFunctionLibrary which >>> could hint that the function should be available in the them.xsl, but it >>> isn't working. >>> >>> I'm using a recent Orbeon 4.0 build. Do you have any idea what I could be >>> doing wrong? I just added an xsl:value-of with the function call to test it. >>> >>> Thanks in advance, >>> >>> Nick Van den Bleeken >>> >>> 1: http://mail-archive.ow2.org/ops-users/2012-07/msg00138.html >>> >>> >>> ________________________________ >>> >>> Inventive Designers' Email Disclaimer: >>> http://www.inventivedesigners.com/email-disclaimer >>> >>> >>> -- >>> 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 >>> OW2 mailing lists service home page: http://www.ow2.org/wws >>> >> >> >> >> -- >> 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 >> OW2 mailing lists service home page: http://www.ow2.org/wws > > > ________________________________ > > Inventive Designers' Email Disclaimer: > http://www.inventivedesigners.com/email-disclaimer > > > -- > 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 > OW2 mailing lists service home page: http://www.ow2.org/wws > -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |