[XQZone General] Saving an HTML file with DOCTYPE declaration?
dsewell at virginia.edu
Mon Oct 25 18:00:12 PDT 2004
Using xdmp:save(), one can save a constructed <html> element to a file on
the filesystem. Is there a way, however, to save an HTML file preceded by
a <!DOCTYPE> declaration?
Within an XQuery script, this can be done by returning a sequence
'<!DOCTYPE html etc.>',
<html> ... </html>
but xdmp:save() can only take a single element as its second argument.
David Sewell, Editorial and Technical Manager
Electronic Imprint, The University of Virginia Press
PO Box 400318, Charlottesville, VA 22904-4318 USA
Courier: 310 Old Ivy Way, Suite 302, Charlottesville VA 22903
Email: dsewell at virginia.edu Tel: +1 434 924 9973
More information about the General