[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

Can I set the DOCTYPE through XQuery (using Saxon8.9j)

Michael Kay mike at saxonica.com
Sat Mar 17 08:09:34 PST 2007


  Can I set the DOCTYPE through XQuery (using
	Saxon8.9j)
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";

http://www.saxonica.com/documentation/using-xquery/extensions.html

or from the command line:

java net.sf.saxon.Query test.xq !method=xhtml !doctype-system=something.dtd

http://www.saxonica.com/documentation/using-xquery/commandline.html

or from the Java API.

And you can ask questions about Saxon on the saxon-help list or forum:

http://sourceforge.net/projects/saxon

Michael Kay
http://www.saxonica.com/

 

> -----Original Message-----
> From: http://x-query.com/mailman/listinfo/talk 
> [mailto:http://x-query.com/mailman/listinfo/talk] On Behalf Of Kevin Grover
> Sent: 17 March 2007 01:22
> To: http://x-query.com/mailman/listinfo/talk
> Subject:  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?
> 
> Thanks
> _______________________________________________
> http://x-query.com/mailman/listinfo/talk
> http://x-query.com/mailman/listinfo/talk



Purchase Stylus Studio Online Today!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.