Script tags

Saturday, 2 June 2018 · 2 messages
PS
Philip Spaelti2 Jun 2018 08:47 #
Hi, I'm using the GUI to generate html documents. The xquery includes a <script src="my_script.js"></script> tag which Basex simplifies to <script src="my_script.js"/> which causes problems in the browser. Am I doing something wrong, or is this a bug? best Philip --------------------------------------------------- Philip Spaelti Kobe Shoin Women's University, Graduate school ---------------------------------------------------
CG
Christian Grün2 Jun 2018 08:53 #
Philip san, If you want to serialize results as HTML, you can introduce your query with an output option declaration [1]:
  declare option output:method 'html';
  <script src="my_script.js"></script>
Hope this helps, Christian [1] http://docs.basex.org/wiki/Serialization
Quoted text · Philip Spaelti · 16 lines
On Sat, Jun 2, 2018 at 8:47 AM, Philip Spaelti <spaelti at gmail.com> wrote: > Hi, > I'm using the GUI to generate html documents. The xquery includes a > <script src="my_script.js"></script> tag which Basex simplifies to <script > src="my_script.js"/> which causes problems in the browser. Am I doing > something wrong, or is this a bug? > > best > Philip > > --------------------------------------------------- > Philip Spaelti > Kobe Shoin Women's University, Graduate school > --------------------------------------------------- > >

⚡Generated with XQuery