eXist-db / documentation

Documentation of eXist
13 stars 44 forks source link

[beginners-guide-to-xrx-v4.xml] Check XRX document #174

Closed xatapult closed 6 years ago

xatapult commented 6 years ago

Can someone check the beginners-guide-to-xrx-v4.xml document? Go through all the steps and see if everything is still ok?

duncdrum commented 6 years ago

I brought this up during the last community call. @joewiz might be in the know?

plutext commented 6 years ago

Under "Collections and File Conventions" items 5 & 6 recommend collections called edit and search, off application root. In contrast, eXide's "new application" creates a modules dir. Presumably edit and search modules should go in there?

plutext commented 6 years ago

As a new user, I spent several hours yesterday on 2 problems in my new app (starting from eXide's "new application"). Here is my experience for what it is worth:

  1. why betterForm wasn't processing my HTML (based on the xforms demo address app). 3 changes I had to make to demo: (i) file suffix had to be .xhtml (ii) Need data-template-at="content" not data-template-at="container-body" (even though container-body is used in demo) (iii) root element needs to be html, not a div

  2. HTTP method GET|PUT is not supported by this URL: resource-error (i) turns out my XQuery module wasn't registered (though nothing in the logs said this specifically - could eXide check/alert about this?) (ii) eventually I found: restxqex:register-module(xs:anyURI ...

  3. Of course, there is no logging from your XQuery module until it is actually running, but it would be useful to highlight the approaches to logging, eg: (i) Monex + console:log : http://localhost:8080/exist/apps/monex/console.html (ii) let $log := util:log to webapp/WEB-INF/logs/exist.log

joewiz commented 6 years ago

@plutext Thanks for your comments.

joewiz commented 6 years ago

@eriksiegel The article is reviewed and confirmed to work (as of #185). Thanks for prodding - I caught several things which would've caused people trouble.