This is not an XMLSpy plugin. (That would be actually impossible because XMLSpy itself is not based on Java.)
Rather, the integration allows DocFlex/XML to launch an instance of XMLSpy as a separate parallel process
and call some its functionality, essentially turning XMLSpy into a DLL (Dynamically Linked Library).
Such usage in fact was supported by Altova itself, who includes in XMLSpy
the 'XMLSpyInterface.jar' Java library, which provides all necessary interfaces.
The integration exposes that functionality to templates via several FlexQuery functions, which allow a template to:
But having XMLSpy generate the diagrams is not enough. Further, the diagrams need to be inserted into the output generated with templates. Here is how it is done.
DocFlex/XML templates operate with abstract data entities called DSM elements (and DSM attributes), on which everything contained in XML files (as well as XML files themselves) is mapped. That mapping is maintained by a special module called XML DSM driver. Each DSM element may have a certain graphic representation called element image, which is provided by a special extension of the DSM driver called Element Image Provider. Element images can be easily operated in templates using Image Controls.
Once the diagrams have been generated by XMLSpy, the integration associates them (as well as imagemap hyperlinks) with the DSM elements representing corresponding XML schema components. Further, a special Element Image Provider implemented within the integration treats each diagram as an element image of the DSM element associated with the XML schema components depicted on that diagram. In that way, the diagrams become accessible via Image Controls in templates, which makes possible to easily program their insertion in the output generated by DocFlex/XML.
Since XMLSpy Integration is heavily connected with the DocFlex/XML core, all Java classes implementing
it are currently included in the general DocFlex/XML Java library:
docflex-xml.jar (or docflex-xml-re.jar).
However, in order to use it, the integration needs to be installed separately
and requires separate licensing.
README.html
|
this file |
*.bat
|
Windows command files to run DocFlex/XML integrated with XMLSpy: |
designer.bat
|
|
generator.bat
|
|
ant/
|
Ant example files: |
ant/build.xml
|
|
ant/make.bat
|
|
maven/
|
A demo project that shows how to configure the unified DocFlex/XML+XMLSpy Maven plugin to generate an XML Schema documentation with diagrams for the reports section of a Maven-generated site: |
maven/pom.xml
|
|
maven/site.bat
|
|
Note: These files and directories can be found in 'xmlspy/' subdirectory of each edition of
DocFlex/XML.
Basically, what is needed for the integration to work is that your XMLSpy edition supports:
XMLSpyInterface.jar)(For instance, the "Standard" edition has no such things.)
This mode allows you to use the integration without any limitations. Once it is enabled, you may think about the integration as yet another part of DocFlex/XML executables.
Anything else will depend on other your licenses.
generator.bat and designer.bat as the following:
'JAVA_HOME' variable, specify the location of your Java 6 or Java 5 installation directory.
For example:
set JAVA_HOME="C:\Program Files\Java\jre6"
Note: When the directory pathname contains spaces, it must be enclosed in double quotes!
'XMLSPY_JAVA_LIB' variable, specify the location of 'XMLSpyInterface.jar' file
that must be found in your XMLSpy installation directory. For example:
set XMLSPY_JAVA_LIB="C:\Program Files\Altova\XMLSpy2009\XMLSpyInterface.jar"
Note: When the file pathname contains spaces, it must be enclosed in double quotes!
'XMLSPY_VERSION' variable, specify your XMLSpy version number. For example:
set XMLSPY_VERSION=2009
Note: The acceptable version number must be an integer in the range from 2004 to 2009
'docflex-xml-xmlspy.license',
which you must have received by e-mail, to the {docflex-xml}\lib directory
(near the docflex-xml.jar file).
Now, everything must be ready. You can start generator.bat to run DocFlex/XML generator
integrated with XMLSpy.
For further specific details about the installation of XMLSpy Integration, please see: www.filigris.com | DocFlex/XML | Integrations | XMLSpy | Installation
ant\build.xml to specify:
'XMLSPY_JAVA_LIB' property set the location of 'XMLSpyInterface.jar' file
(found in your XMLSpy installation directory)
'XMLSPY_VERSION' property set your XMLSpy version
ant\make.bat to specify the locations of your Java and Ant installations
ant\make.bat
In {docflex-xml}\mavem\plugin\ directory, edit pom.xml to
uncomment the following lines and specify the absolute location of XMLSpy Java interface library
and XMLSpy version:
Further, follow the installation instruction found in<dependency> <groupId>xmlspy</groupId> <artifactId>XMLSpyInterface</artifactId> <version>2009</version> <scope>system</scope> <systemPath>C:\Program Files\Altova\XMLSpy2009\XMLSpyInterface.jar</systemPath> </dependency>
{docflex-xml}\mavem\plugin\index.html
{docflex-xml}\xmlspy\maven\ directory:
Edit pom.xml
to specify your XMLSpy version in the following line:
<param>-m:XMLSPY_VERSION=2009</param>
Edit site.bat to specify the locations of your Java and Maven installations.
site.bat
If you have any questions, suggestions, etc., please let us know by sending an email to: support@docflex.com or contact@filigris.com