From: Gomez, N. <nic...@hp...> - 2004-06-18 13:22:55
|
Hello, =20 I am running eXist in embed-mode, served by Tomcat, and access it through logicsheets. The following statement used to work properly (with snapshot 20040302): ... <xdb:collection> <xdb:uri>serverURI</xdb:uri> <xdb:user>user</xdb:user> <xdb:password>passwd</xdb:password> <xdb:execute> <xdb:xpath>queryStr</xdb:xpath> ... where serverURI, user, passwd and queryStr are variables, properly defined. =20 To prevent some failure with XUpdate and data corruption, I installed the 20040616 snapshot, and the code above failed. =20 Are there any reasons for this change ? Has any-one encountered the problem ? =20 To solve my problem, I tried to look at the xmldb.xsl stylesheet (under src/org/exist), which is applied to the xsp to generate the Java code. (By the way, why are there 2 stylesheets: xmldb.xsl and xmldb2.xsl ?) I saw what may be an error in the get-parameter template (around line 703) and replaced=20 <xsl:apply-templates select=3D"*[local-name() =3D $name]/node()"/> by <xsl:apply-templates select=3D"*[local-name(.) =3D $name]/node()"/> =20 Is it actually an error ? With this change, statement like =20 <xdb:collection uri=3D"xmldb:exist:///db"> <xdb:user>user</xdb:user> <xdb:password>passwd</xdb:password> <xdb:execute> <xdb:xpath>queryStr</xdb:xpath> =20 works, but still fails if the uri is not passed as a parameter: =20 <xdb:collection> <xdb:uri>serverURI</xdb:uri> <xdb:user>user</xdb:user> <xdb:password>passwd</xdb:password> <xdb:execute> <xdb:xpath>queryStr</xdb:xpath> =20 Any help will be appreciated, which could prevent me either from re-writing all my xsp or customizing too much my exist... =20 Regards, =20 =20 Nicolas Gomez Teamlog / HP-OCBU Engineering Infrastructure =20 =20 |