From france.baril at architextus.com Thu Nov 27 07:33:21 2014 From: france.baril at architextus.com (France Baril) Date: Thu, 27 Nov 2014 09:33:21 -0600 Subject: [xquery-talk] Serialize xml to html5 with php. Message-ID: Hi, I was trying to use BaseX to export files that contain some php code, and after xml to html5 serialization becomes . They suggested I contact this list to enquire about any option to export the php with the closing '?'? -- France Baril Architecte documentaire / Documentation architect france.baril at architextus.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ms at basex.org Thu Nov 27 08:00:06 2014 From: ms at basex.org (Michael Seiferle) Date: Thu, 27 Nov 2014 17:00:06 +0100 Subject: [xquery-talk] Serialize xml to html5 with php. In-Reply-To: References: Message-ID: <678C9BC8-2368-4847-BEA3-E2025378D199@basex.org> Hi France, I started toying around, here are three more or less pragmatic approaches :-) Are you required to use html(5) serialization? From what I understand processing instructions in HTML are serialized differently, '?>' serializes to '>': http://www.w3.org/TR/1999/REC-html401-19991224/appendix/notes.html#h-B.3.6 (there may be a better source for this behavior, but this is what I found). In case you are not, you could work around this using xhtml serialization: > declare option output:method "xhtml"; > > > > > or alternatively add an extra '?': > declare option output:method "html"; > declare option output:html-version "5.0"; > > > > > or you could make use of PHPs script syntax: http://php.net/manual/en/language.basic-syntax.phpmode.php > Best Michael On 27 Nov 2014, at 16:33, France Baril wrote: > Hi, > > I was trying to use BaseX to export files that contain some php code, > and > after xml to html5 serialization becomes . > > They suggested I contact this list to enquire about any option to > export > the php with the closing '?'? > > > -- > France Baril > Architecte documentaire / Documentation architect > france.baril at architextus.com > _______________________________________________ > talk at x-query.com > http://x-query.com/mailman/listinfo/talk