<div dir="ltr">Hi, solution #2 was the best option. <div><br></div><div>#1 was not an option in our context and #3 did not work in every browser.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 27, 2014 at 10:00 AM, Michael Seiferle <span dir="ltr"><<a href="mailto:ms@basex.org" target="_blank">ms@basex.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi France,<br>
<br>
<br>
I started toying around, here are three more or less pragmatic approaches :-)<br>
<br>
Are you required to use html(5) serialization? From what I understand processing instructions in HTML are serialized differently, '?>' serializes to '>':<br>
<a href="http://www.w3.org/TR/1999/REC-html401-19991224/appendix/notes.html#h-B.3.6" target="_blank">http://www.w3.org/TR/1999/REC-<u></u>html401-19991224/appendix/<u></u>notes.html#h-B.3.6</a> (there may be a better source for this behavior, but this is what I found).<br>
<br>
In case you are not, you could work around this using xhtml serialization:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
declare option output:method "xhtml";<br>
<br>
<x><br>
<?php print "Hi"  ?><br>
<input/><br>
</x><br>
</blockquote>
<br>
or alternatively add an extra '?':<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
declare option output:method "html";<br>
declare option output:html-version "5.0";<br>
<br>
<x><br>
<?php haha  ??><br>
<input/><br>
</x><br>
</blockquote>
<br>
or you could make use of PHPs script syntax: <a href="http://php.net/manual/en/language.basic-syntax.phpmode.php" target="_blank">http://php.net/manual/en/<u></u>language.basic-syntax.phpmode.<u></u>php</a><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<script language="php"><br>
    echo 'some editors (like FrontPage) don\'t<br>
         like processing instructions';<br>
</script><br>
</blockquote>
<br>
Best<br>
<br>
Michael<div><div class="h5"><br>
<br>
On 27 Nov 2014, at 16:33, France Baril wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hi,<br>
<br>
I was trying to use BaseX to export files that contain some php code, and<br>
after xml to html5 serialization  <?php ... ?> becomes <?php ...>.<br>
<br>
They suggested I contact this list to enquire about any option to export<br>
the php with the closing '?'?<br>
<br>
<br>
-- <br>
France Baril<br>
Architecte documentaire / Documentation architect<br>
<a href="mailto:france.baril@architextus.com" target="_blank">france.baril@architextus.com</a><br></div></div>
______________________________<u></u>_________________<br>
<a href="mailto:talk@x-query.com" target="_blank">talk@x-query.com</a><br>
<a href="http://x-query.com/mailman/listinfo/talk" target="_blank">http://x-query.com/mailman/<u></u>listinfo/talk</a><br>
</blockquote>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">France Baril<br>Architecte documentaire / Documentation architect<br><a href="mailto:france.baril@architextus.com" target="_blank">france.baril@architextus.com</a><br></div></div>
</div>