If this is for output you might consider using the xhtml or html serialization options [1] E.g.
declare option output:method "xhtml";
<script/>
Will output <script></script>
/Andy
[1] http://docs.basex.org/wiki/Serialization
This workaround produces the output:
copy $c := <script>{" "}</script>
modify (
replace value of node $c with ""
)
return $c
-- Andreas
Am 01.02.2013 um 14:28 schrieb marco fregonese:
> _______________________________________________
> Hi there,
>
> I have to return from a query tags like this:
>
> <script></script>
>
> not self closing tags like this:
>
> <script/>
>
> Is there any way to do that in BaseX?
>
> Thanks.
> BaseX-Talk mailing list
> BaseX-Talk@mailman.uni-konstanz.de
> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
_______________________________________________
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk