Hi Kevin, you can specify the serialization parameters either on the following way: <serialization-parameters xmlns="http://www.w3.org/2010/xslt-xquery-serialization"> <method value="xml"/> <version value="1.0"/> <cdata-section-elements value="div"/> </serialization-parameters> or using the map structure: let $params := map { "method" := "xml", "cdata-section-elements" := "div" } Regards, Rositsa On Wed, 14 Sep 2011 17:47:01 +0200, Kevin S. Clarke <ksclarke@gmail.com> wrote:
Hi,
I'm having difficulty locating the proper syntax to pass to file:write(). The documentation says: $serializer-params as node()*
but what does that element look like? <output method="text"/> or <serialization method="text"/> or <serialization method="xml" cdata-section-elements="div"/> or something else? I see I can set those as options in the XQuery itself too, but I'd like to figure out what I'm doing wrong.
Thanks, Kevin _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
-- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/