Serialization xhtml --> html 5
Hi France,
Quoted text · France Baril · 3 lines
> 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
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
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 at gmail.com>wrote:
Quoted text · Christian Grün · 20 lines
> 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 >
Written for BaseX 7.7. BaseX may have changed since: please check the current documentation.