[xquery-talk] Can I set the DOCTYPE through XQuery (using
mike at saxonica.com
Sat Mar 17 08:09:34 PST 2007
You can set serialization parameters in Saxon using an option in the prolog
declare option saxon:output "method=xhtml";
declare option saxon:output "doctype-system=something.dtd";
or from the command line:
java net.sf.saxon.Query test.xq !method=xhtml !doctype-system=something.dtd
or from the Java API.
And you can ask questions about Saxon on the saxon-help list or forum:
> -----Original Message-----
> From: talk-bounces at x-query.com
> [mailto:talk-bounces at x-query.com] On Behalf Of Kevin Grover
> Sent: 17 March 2007 01:22
> To: talk at xquery.com
> Subject: [xquery-talk] Can I set the DOCTYPE through XQuery
> (using Saxon8.9j)
> Subject say is all: Can I set the DOCTYPE through XQuery
> (using Saxon 8.9j)?
> I've looked through the online docs. During the 8.8j
> version, I got the impression that there were some saxon
> specific 'serialization'
> parameters. However, I can't find them now.
> FYI, I'm generating XHTML and want the DOCTYPE to be there so
> I can run it through a validtator (xmllint or saxon) to
> verify that it really IS valid XHTML.
> It is possible? Or, should I just switch to XSLT?
> talk at x-query.com
More information about the talk