Serialization xhtml --> html 5
Hi, I have quick question... Is it possible to view content saved as XHTML in a BaseX database as HTML 5 in a browser when accessing the content through a domain:port/rest/... address? Is this configurable through a serialization setting somewhere? Thanks -- France Baril Architecte documentaire / Documentation architect france.baril@architextus.com (514) 572-0341
Hi France,
Is it possible to view content saved as XHTML in a BaseX database as HTML 5 in a browser when accessing the content through a domain:port/rest/... address?
Try this: http://your.url:port/rest/db/doc.xml?method=xhtml&html-version=5.0 Some more information on providing serialization parameters to REST requests can be found here [1, 2]. Hope this helps, Christian [1] http://docs.basex.org/wiki/REST#Parameters [2] http://docs.basex.org/wiki/Serialization
method=html&html-version=5.0... yes! I was able to serialize in restxq and on export, but I had not figure out the /rest/ equivalent. This does it! Big thanks! On Tue, Feb 11, 2014 at 12:13 PM, Christian Grün <christian.gruen@gmail.com>wrote:
Hi France,
Is it possible to view content saved as XHTML in a BaseX database as HTML 5 in a browser when accessing the content through a domain:port/rest/... address?
Try this:
http://your.url:port/rest/db/doc.xml?method=xhtml&html-version=5.0
Some more information on providing serialization parameters to REST requests can be found here [1, 2].
Hope this helps, Christian
[1] http://docs.basex.org/wiki/REST#Parameters [2] http://docs.basex.org/wiki/Serialization
-- France Baril Architecte documentaire / Documentation architect france.baril@architextus.com (514) 572-0341
participants (2)
-
Christian Grün -
France Baril