You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Ciaran <ci...@gmail.com> on 2008/05/27 19:07:39 UTC
XSLT document() function support
Hi Guys,
I can't seem to use the document() function in any XSL I call from BPEL, it
seems to only want to search for available XSL stylesheets rather than
arbritary documents (I would like to get hold of an XML document)
if do select="document('foo.xml')" it falls over at line 47 of the
org.apache.ode.bpel.elang.xpath20.runtime.XslRuntimeUriResolver ,
specifically it tries to find in the XPAthExpression's context that filename
(foo.xml) in the set of stylesheets associated with the XPath context.
Any Ideas? (Incidentally a friend has been trying to post this query to the
mailing list seperately to little avail, so I'm posting on behalf of him! )
--
- Ciaran
Re: XSLT document() function support
Posted by Ciaran <ci...@gmail.com>.
>
>
>>
> I had the same problem some time ago. The workaround was to use XSLT 2.0
> instead of 1.0. They eliminated result tree fragments in 2.0, so any XML
> tree can be used as a value of some global variable. Now instead of separate
> XML document I insert this document into global variable and access to it
> within the same stylesheet. Maybe this is your case too.
> Regards,
Thanks, that would help us, as we could inline the document we're sourcing,
as it happens I'm also writing a patch to support the functionality
future-wise
- cj.
Re: XSLT document() function support
Posted by Alexey Ousov <ao...@gmail.com>.
Ciaran wrote:
> Hi Guys,
> I can't seem to use the document() function in any XSL I call from BPEL, it
> seems to only want to search for available XSL stylesheets rather than
> arbritary documents (I would like to get hold of an XML document)
> if do select="document('foo.xml')" it falls over at line 47 of the
> org.apache.ode.bpel.elang.xpath20.runtime.XslRuntimeUriResolver ,
> specifically it tries to find in the XPAthExpression's context that filename
> (foo.xml) in the set of stylesheets associated with the XPath context.
>
> Any Ideas? (Incidentally a friend has been trying to post this query to the
> mailing list seperately to little avail, so I'm posting on behalf of him! )
>
I had the same problem some time ago. The workaround was to use XSLT 2.0
instead of 1.0. They eliminated result tree fragments in 2.0, so any XML
tree can be used as a value of some global variable. Now instead of
separate XML document I insert this document into global variable and
access to it within the same stylesheet. Maybe this is your case too.
Regards,
Alexey
Re: XSLT document() function support
Posted by Matthieu Riou <ma...@offthelip.org>.
On Tue, May 27, 2008 at 11:49 AM, Ciaran <ci...@gmail.com> wrote:
> Thanks, I've *still* not subscribed to the dev list ;) Happy to write that
> patch but not quite sure how to get the context into that point in
> time+space, will investigate
If help's needed, we can give you a few pointers.
Cheers,
Matthieu
>
> - Ciaran.
>
> On Tue, May 27, 2008 at 7:41 PM, Alex Boisvert <bo...@intalio.com>
> wrote:
>
> > I answered your friend's email earlier today,
> > http://markmail.org/message/m5lbh6zrvibt5aof
> >
> > alex
> >
> >
> > On Tue, May 27, 2008 at 10:07 AM, Ciaran <ci...@gmail.com> wrote:
> >
> > > Hi Guys,
> > > I can't seem to use the document() function in any XSL I call from
> BPEL,
> > it
> > > seems to only want to search for available XSL stylesheets rather than
> > > arbritary documents (I would like to get hold of an XML document)
> > > if do select="document('foo.xml')" it falls over at line 47 of the
> > > org.apache.ode.bpel.elang.xpath20.runtime.XslRuntimeUriResolver ,
> > > specifically it tries to find in the XPAthExpression's context that
> > > filename
> > > (foo.xml) in the set of stylesheets associated with the XPath context.
> > >
> > > Any Ideas? (Incidentally a friend has been trying to post this query to
> > the
> > > mailing list seperately to little avail, so I'm posting on behalf of
> him!
> > )
> > >
> > > --
> > > - Ciaran
> > >
> >
>
>
>
> --
> - Ciaran
>
Re: XSLT document() function support
Posted by Ciaran <ci...@gmail.com>.
Thanks, I've *still* not subscribed to the dev list ;) Happy to write that
patch but not quite sure how to get the context into that point in
time+space, will investigate
- Ciaran.
On Tue, May 27, 2008 at 7:41 PM, Alex Boisvert <bo...@intalio.com> wrote:
> I answered your friend's email earlier today,
> http://markmail.org/message/m5lbh6zrvibt5aof
>
> alex
>
>
> On Tue, May 27, 2008 at 10:07 AM, Ciaran <ci...@gmail.com> wrote:
>
> > Hi Guys,
> > I can't seem to use the document() function in any XSL I call from BPEL,
> it
> > seems to only want to search for available XSL stylesheets rather than
> > arbritary documents (I would like to get hold of an XML document)
> > if do select="document('foo.xml')" it falls over at line 47 of the
> > org.apache.ode.bpel.elang.xpath20.runtime.XslRuntimeUriResolver ,
> > specifically it tries to find in the XPAthExpression's context that
> > filename
> > (foo.xml) in the set of stylesheets associated with the XPath context.
> >
> > Any Ideas? (Incidentally a friend has been trying to post this query to
> the
> > mailing list seperately to little avail, so I'm posting on behalf of him!
> )
> >
> > --
> > - Ciaran
> >
>
--
- Ciaran
Re: XSLT document() function support
Posted by Alex Boisvert <bo...@intalio.com>.
I answered your friend's email earlier today,
http://markmail.org/message/m5lbh6zrvibt5aof
alex
On Tue, May 27, 2008 at 10:07 AM, Ciaran <ci...@gmail.com> wrote:
> Hi Guys,
> I can't seem to use the document() function in any XSL I call from BPEL, it
> seems to only want to search for available XSL stylesheets rather than
> arbritary documents (I would like to get hold of an XML document)
> if do select="document('foo.xml')" it falls over at line 47 of the
> org.apache.ode.bpel.elang.xpath20.runtime.XslRuntimeUriResolver ,
> specifically it tries to find in the XPAthExpression's context that
> filename
> (foo.xml) in the set of stylesheets associated with the XPath context.
>
> Any Ideas? (Incidentally a friend has been trying to post this query to the
> mailing list seperately to little avail, so I'm posting on behalf of him! )
>
> --
> - Ciaran
>