XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
stanley armstrongSubject: Option Declaration Using Saxon
Author: stanley armstrong
Date: 17 Jan 2008 11:42 AM
Hi,
I am using the stylus studio enterprise edition 2008 to generate a mapping betwen 2 xml files and then generate java code from the xquery using the saxon processor.Everything works well, except when i try to add the following it does not show the added doctype declaration
declare namespace saxon ="http://saxon.sf.net/";
declare option saxon:output "doctype-system = blah.dtd";
when the new xml is generated i do not see a <!DOCTYPE "blah..> declaration add :-(
I was wondering if anyone could help me out.

Stanley

Posttop
Alberto MassariSubject: Option Declaration Using Saxon
Author: Alberto Massari
Date: 24 Jan 2008 09:05 AM
Hi Stanley,
when Stylus previews the XQuery using Saxon, it doesn't rely on the Saxon serializer, so the option is ignored. If you need to run the serializer you can generate the Java code for the XQuery, and run it.

Hope this helps,
Alberto

 
Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.