Preserving xinclude when saving to exist

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

Preserving xinclude when saving to exist

Ethan Gruber
Hi all,

All of my documents in exist have an xinclude that points to a header file in a child folder for my project.  When I create a new document, I need to be able to pass this xinclude in the orbeon instance to exist when saving.  I don't want to load the file referenced by the xinclude into the Orbeon webform.  My best guess is that I need to disable output escaping for the < and > characters.  I tried doing this:

<?javax.xml.transform.disable-output-escaping?>&lt;<?javax.xml.transform.enable-output-escaping?>

This literally sent the above string to exist, and the xinclude isn't being handled natively in the database.  Does anyone have any good ideas on how to make this work?

Thanks,
Ethan


--
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
Reply | Threaded
Open this post in threaded view
|

Re: Preserving xinclude when saving to exist

Alessandro Vernet
Administrator
Ethan,

Ethan Gruber wrote
All of my documents in exist have an xinclude that points to a header file
in a child folder for my project.  When I create a new document, I need to
be able to pass this xinclude in the orbeon instance to exist when saving.
I don't want to load the file referenced by the xinclude into the Orbeon
webform.  My best guess is that I need to disable output escaping for the <
and > characters.  I tried doing this:

<?javax.xml.transform.disable-output-escaping?><<?javax.xml.transform.enable-output-escaping?>

This literally sent the above string to exist, and the xinclude isn't being
handled natively in the database.  Does anyone have any good ideas on how to
make this work?
Is the XInclude processed by eXist, or by Orbeon Forms? I.e. if you get the document through the REST API, in what is returned by eXist, is the XInclude element already replaced by the document referenced in that element?

Alex
Reply | Threaded
Open this post in threaded view
|

Re: Re: Preserving xinclude when saving to exist

Ethan Gruber
Hi Alessandro,

Yeah, the eXist rest interface returns the full document, with Xincludes replaced by the document they referenced.  I actually reconfigured the way that I have modeled my data because I ran into some other problems with it, but it may still be useful to know how to pass the <xi:include href=""/> string straight to eXist, for future reference.

Thanks,
Ethan

On Tue, Aug 18, 2009 at 1:49 PM, Alessandro Vernet <[hidden email]> wrote:

Ethan,


Ethan Gruber wrote:
>
> All of my documents in exist have an xinclude that points to a header file
> in a child folder for my project.  When I create a new document, I need to
> be able to pass this xinclude in the orbeon instance to exist when saving.
> I don't want to load the file referenced by the xinclude into the Orbeon
> webform.  My best guess is that I need to disable output escaping for the
> <
> and > characters.  I tried doing this:
>
> <?javax.xml.transform.disable-output-escaping?>&lt;<?javax.xml.transform.enable-output-escaping?>
>
> This literally sent the above string to exist, and the xinclude isn't
> being
> handled natively in the database.  Does anyone have any good ideas on how
> to
> make this work?
>

Is the XInclude processed by eXist, or by Orbeon Forms? I.e. if you get the
document through the REST API, in what is returned by eXist, is the XInclude
element already replaced by the document referenced in that element?

Alex

-----
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet
--
View this message in context: http://www.nabble.com/Preserving-xinclude-when-saving-to-exist-tp24999810p25030109.html
Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.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




--
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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Preserving xinclude when saving to exist

Alessandro Vernet
Administrator
Ethan,

Ethan Gruber wrote
Yeah, the eXist rest interface returns the full document, with Xincludes
replaced by the document they referenced.  I actually reconfigured the way
that I have modeled my data because I ran into some other problems with it,
but it may still be useful to know how to pass the <xi:include href=""/>
string straight to eXist, for future reference.
I think you'll find what you are looking for on:

http://www.orbeon.com/ops/doc/processors-xinclude

Alex