Unknown system function instance()

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

Unknown system function instance()

victor panizza-2
Hello All!!!
I'm trying to do:

<xsl:copy-of select="doc(instance('id-22-example-list-instance')/scr_tbl/par_avalue)"/>

Orbeon throw the next error:

Failed to compile stylesheet. 1 error detected. Error at  of  oxf:/apps/sample-web/screen/scr_win/new/screen/screen.xml: XPath syntax error at char 40 on line -1 in
{...e-list-instance')/scr_tblpa...}:     Unknown system function instance()


Any Idea???
Thanks in advance!!!!!!

P.D.
In the Government example it works!!
mostly is my error but I can't figure out what's going on!!


Get the free Yahoo! toolbar and rest assured with the added security of spyware protection.

--
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: Unknown system function instance()

Daniel E. Renfer
instance() is an XForms function. The expression you are doing here is
an XSL expression. Since XSL has no function named instance(), you are
getting an error.

If you want to perform this expression, you will need to reference
information known to the XSL processor at the time it is run. (which
is before the XForms instance is created) Do you have an input that
you use to populate this instance, or is this information coming in
during the run time of the form? (my guess is the latter)

If this is information that you could only get while the form is
running, and you are trying to do this in response to some event fired
by the form, then you'll probably need to be looking at xf:insert and
xf:delete instead.

--
Daniel E. Renfer
http://kronkltd.net/


On 7/13/07, victor panizza <[hidden email]> wrote:

> Hello All!!!
> I'm trying to do:
>
> <xsl:copy-of
> select="doc(instance('id-22-example-list-instance')/scr_tbl/par_avalue)"/>
>
> Orbeon throw the next error:
>
> Failed to compile stylesheet. 1 error detected. Error at  of
> oxf:/apps/sample-web/screen/scr_win/new/screen/screen.xml:
> XPath syntax error at char 40 on line -1 in
> {...e-list-instance')/scr_tblpa...}:     Unknown system
> function instance()
>
>
> Any Idea???
> Thanks in advance!!!!!!
>
> P.D.
> In the Government example it works!!
> mostly is my error but I can't figure out what's going on!!


--
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: Unknown system function instance()

victor panizza-2
I got it Daniel!!!

Do you know about any example that could guide me (xf:include and xf:delete)???? or how can I modify the next example ( in Government forms).

<xsl:copy-of select="doc(concat('../forms/', doc('input:instance')/*/form-id, '/view.xml'))/*"/>

I'm novice in the xsl issues.


Any help!!!
THANKSSSSSSS IN ADVANCEE!!!



"Daniel E. Renfer" <[hidden email]> wrote:
instance() is an XForms function. The expression you are doing here is
an XSL expression. Since XSL has no function named instance(), you are
getting an error.

If you want to perform this expression, you will need to reference
information known to the XSL processor at the time it is run. (which
is before the XForms instance is created) Do you have an input that
you use to populate this instance, or is this information coming in
during the run time of the form? (my guess is the latter)

If this is information that you could only get while the form is
running, and you are trying to do this in response to some event fired
by the form, then you'll probably need to be looking at xf:insert and
xf:delete instead.

--
Daniel E. Renfer
http://kronkltd.net/


On 7/13/07, victor panizza wrote:

> Hello All!!!
> I'm trying to do:
>
>
> select="doc(instance('id-22-example-list-instance')/scr_tbl/par_avalue)"/>
>
> Orbeon throw the next error:
>
> Failed to compile stylesheet. 1 error detected. Error at of
> oxf:/apps/sample-web/screen/scr_win/new/screen/screen.xml:
> XPath syntax error at char 40 on line -1 in
> {...e-list-instance')/scr_tblpa...}: Unknown system
> function instance()
>
>
> Any Idea???
> Thanks in advance!!!!!!
>
> P.D.
> In the Government example it works!!
> mostly is my error but I can't figure out what's going on!!


--
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


Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.

--
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: Unknown system function instance()

Alessandro Vernet
Administrator
Victor,

On 7/13/07, victor panizza <[hidden email]> wrote:
> Do you know about any example that could guide me (xf:include and
> xf:delete)???? or how can I modify the next example ( in Government forms).

Where would the <xsl:copy-of
select="doc(instance('id-22-example-list-instance')/scr_tbl/par_avalue)"/>
need to be used? In most cases, the only "instance" you can access in
XSLT is the instance that was submitted. If an instance was submitted
from page A to page B, in the view of page B, you can access the
instance submitted from A.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws