Hello,

The feature of XML Schema documentation is available also as an external tool available from the command line. See the [oXygen-install-folder]/schemaDocumentation.sh script. The feature can be used from an Ant script by translating the two java commands of the above script as an Ant task. For example the attached Ant script copied to [oXygen-install-folder] generates the HTML documentation for the [oXygen-install-folder]/samples/personal.xsd schema.


Best regards,
Sorin

http://www.oxygenxml.com/


Alexander Voss wrote:

Hi,

I was wondering if it is possible to use features
of oXygen such as the schema documentation function
in an ant task in a similar way as xnsdoc?

Cheers,

Alex

<?xml version="1.0" encoding="UTF-8"?>
<project name="schemaDoc-XS3P-test" default="schemaDoc">
	
	<target name="schemaDoc">
		<java classname="ro.sync.exml.SwingSDImageGenerator">
			<classpath>
				<pathelement path="lib/oxygen.jar"/>
				<pathelement path="lib/xml-apis.jar"/>
				<pathelement path="lib/xercesImpl.jar"/>
				<pathelement path="lib/resolver.jar"/>
				<pathelement path="lib/log4j.jar"/>
			</classpath>
			<arg value="samples/personal.xsd"/>
			<arg value="doc/imagesFolder"/>
			<arg value=".png"/>
			<arg value="no"/>
		</java>
		
		<java classname="net.sf.saxon.Transform">
			<classpath>
				<pathelement path="lib/saxon8.jar"/>
				<pathelement path="lib/xml-apis.jar"/>
				<pathelement path="lib/xercesImpl.jar"/>
			</classpath>
			<arg value="-o"/>
			<arg value="doc/personal.xsd.html"/>
			<arg value="samples/personal.xsd"/>
			<arg value="frameworks/xs3p/xs3p.xsl"/>
			<arg value="showDiagrams=true"/>
			<arg value="imagesBaseURL=imagesFolder"/>
			<arg value="sortByComponent=true"/>
			<arg value="useJavaScript=true"/>
			<arg value="printAllSuperTypes=true"/>
			<arg value="printAllSubTypes=true"/>
			<arg value="printLegend=true"/>
			<arg value="printGlossary=true"/>
			<arg value="printNSPrefixes=true"/>
			<arg value="mainSchemaOutputFile=personal.xsd.html"/>
			<arg value="showLogicalDiagrams=true"/>
			<arg value="mainDocBase=doc"/>
			<arg value="mainDocFile=personal.xsd.html"/>
			<arg value="diagramImagesExtension=*.png"/>
			<arg value="useHashcodes=no"/>
		</java>
	</target>
	
</project>
_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Reply via email to