On 19/04/13 13:27, Dan McCreary wrote:
> I am not sure if I understand clearly but the following looks like it
> might be the problem:
>
> <?xml-stylesheet type="text/xsl" href="../xsltforms/xsltforms.xsl"?>
>
> On eXist 2.0 the xsltforms.xsl file is located here:
>
> http://localhost:8080/exist/rest/db/apps/xsltforms/xsltforms.xsl
>
> Note that it is in the database, not the file system.
>
> If you put the following absolute paths in:
>
>
> <?xml-stylesheet type="text/xsl"
> href="/exist/rest/db/apps/xsltforms/xsltforms.xsl"?>
> or
> <?xml-stylesheet type="text/xsl" 
> href="/rest/db/apps/xsltforms/xsltforms.xsl"?>
>
> if you change the jetty.xml to use "/" as the "context"
>
> then this should work.

No, I'm afraid it doesn't. Apparently xsltforms.xsl is located 
correctly. When it is not (that is for example when using another path 
in the processing instruction) I get the error:

stylesheet not found: /db/apps/logoscope/xsltforms/xsltforms.xsl

I looked into xsltforms.xsl and I think the problem stems from this snippet:

<xsl:variable name="configdoc" 
select="document(concat($xsltforms_home,'config.xsl'))/xsl:stylesheet/xsl:template[@name='config']"/>

More specifically I suppose $xsltforms_home is not set correctly and I 
can't figure out where and how to set it.

Best,

Ingrid



>
> You can also load the XSLTForms demos app and see how they are done,
> but you will need to understand the concepts around URL rewriting to
> see how they work.
>
> - Dan
>
>
> On Fri, Apr 19, 2013 at 3:10 AM, Ingrid Falk <[email protected]> wrote:
>> Hi,
>>
>> I would like to use xforms inside eXist-db, client side.
>>
>> Currently, when I load the hello.xhtml xform from the eXist-db xsltforms
>> demo application into my own application
>> and then try to display it in the browser, I get the following error:
>>
>>    Error while serializing XML: java.io.FileNotFoundException:
>> /home/falk/eXist-db/config.xsl (No such file or directory)
>>
>> The setting is as follows:
>>
>> - I use the latest stable eXist-db release with Linux/Ubuntu
>>    It is installed in /home/falk/eXist-db
>>
>> - The processing instruction in the xform is:
>>
>> <?xml-stylesheet type="text/xsl" href="../xsltforms/xsltforms.xsl"?>
>>
>> - the path of hello.xhtml in eXist-db is: /db/apps/logoscope/hello.xhtml
>> - the path of the xsltforms application is: /db/apps/xsltforms
>>
>> Apparently xsltforms.xsl is applied but it does not find the proper path for
>> xsltforms to prepend to the config.xsl file.
>>
>> Any idea how I could go about to fix this?
>>
>> I could use xsltforms via my local http server - I couldn't figure out how
>> to make it work with the file:// URI though.
>>
>> Is there an easy way to allow writing to files via the local http server or
>> file:// URIs?
>>
>> What I would like to do is to display an xform in the browser, let a user on
>> the local machine fill in some fields and then, when "submitting" save the
>> outcome to a file on the local file system.
>>
>> Thank you & best regards,
>>
>> Ingrid Falk
>>
>>
>>
>> --
>> Ingrid Falk
>> Ingénieur de Recherche
>> Logoscope @ LiLPa (Linguistique, Langue, Paroles)
>> Université de Strasbourg
>>
>>
>> ------------------------------------------------------------------------------
>> Precog is a next-generation analytics platform capable of advanced
>> analytics on semi-structured data. The platform includes APIs for building
>> apps and a phenomenal toolset for data science. Developers can use
>> our toolset for easy data analysis & visualization. Get a free account!
>> http://www2.precog.com/precogplatform/slashdotnewsletter
>> _______________________________________________
>> Xsltforms-support mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/xsltforms-support
>>
>
>
>


-- 
Ingrid Falk
Ingénieur de Recherche
Logoscope @ LiLPa (Linguistique, Langue, Paroles)
Université de Strasbourg

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to