Serialization xhtml --> html 5

Tuesday, 11 February 2014 · 3 messages
CG
Christian Grünin reply to France Baril, 11 Feb 2014, 19:0711 Feb 2014 18:13 #
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
FB
France Baril11 Feb 2014 19:07 #
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 at architextus.com (514) 572-0341
FB
France Barilin reply to Christian Grün, 11 Feb 2014, 18:1311 Feb 2014 21:13 #
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 >
-- France Baril Architecte documentaire / Documentation architect france.baril at architextus.com (514) 572-0341

⚡Generated with XQuery