Re: Uploading files

Posted by Erik Bruchez on
URL: https://discuss.orbeon.com/Uploading-files-tp30091p30099.html

Roughly, one way of doing it:

o Upload your main schema to a service implemented with XPL
o With p:for-each, iterate over the schema imports
   o For each import, fetch the imported schema with the URL generator
   o Maybe modify the schemaLocation attribute in the main schema to
     point to the future location in eXist
   o Insert the imported schema into eXist
o Insert the main schema into eXist

-Erik

Peymirat Damien wrote:

> Hi all,
>
>
>    I'm trying to build a XML Schema database. At the moment, I can
> upload on my eXist database a XML file with a xforms:upload. However, I
> have some XML Schema which have an import element like that : <xs:import
> namespace="http://www.example.com/SYS/base/2.0/"
> schemaLocation="SYS/base/2.0/base.xsd"/>. So I would like to know how to
> put this file (base.xsd) in my eXist database without asking the user to
> upload it ?? In fact I just want that the user uploads his schema and
> automatically the XML schema included in the import element is saved in
> my eXist database.
>
>
> Thank you for your suggestions
>
> Best regards
>
> Damien.
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> 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

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