'{flexdoc-xml}'
.
{flexdoc-xml}\bin
directory.
Edit *.bat
files found there to specify the JAVA_HOME
variable according
to the location of Java 9 (or later) installed on your system.
DFH
variable to the absolute pathname
of the FlexDoc/XML installation directory (e.g. set DFH=C:\flexdoc-xml-1.12.5
).
flexdoc-xml.license
(received by e-mail),
copy it to {flexdoc-xml}\lib
directory. This file should be always near the flexdoc-xml.jar
file!
generator.bat
(e.g. to generate XML Schema documentation)
designer.bat
to launch the Template Designer
(and investigate XSDDoc templates or samples)
File | Description |
---|---|
![]() |
This is the FlexDoc/XML main configuration file.
It specifies:
|
![]() |
The FlexDoc/XML license file, which you should receive by e-mail.
Alternative Locations:
|
![]() |
The Template Designer configuration file.
It stores the designer configuration for the recently edited templates. This file is created and maintained automatically.
|
![]() |
The generator configuration file; used by the Generator to obtain all settings not specified directly on the command line.
This file is created and maintained automatically by the generator dialog. It contains:
You can use the generator dialog to quickly prepare a config file with the specific settings you need and,then, provide only this file on the generator command line (using -config option) instead of specifying all those settings directly.
|
![]() |
The default XML catalog file;
redirects the external locations of some standard XML schemas found in Internet to their local copies stored in FlexDoc/XML resources.
This file is crucial for big template applications, like XSDDoc! For more details, please see: XML Catalogs | Default XML Catalog
|
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
<xs:import>
element tells the XML schema processor to import another XML schema
'xml.xsd'
located by the URL http://www.w3.org/2001/xml.xsd
,
which is found somewhere in Internet (specifically, on the web-site of W3C).
Suppose that you have both XML schemas on your local drive. You want to process them without changing anything in the schema sources and, yet, without loading anything from the Internet. How can you do that?
Another situation may happen when an XML file (or any other file) is referred by a certain opaque URI (or system identifier), like the following string:
urn:oasis:names:tc:dita:xsd:xml.xsd:1.1
XML catalogs provide a solution for such problems. Basically, an XML catalog is a special XML file that maps some external identifiers or URIs to other URIs, which may provide more information on how the physical files can be found. Here is an example of XML catalog (click on the link):
http://docs.oasis-open.org/dita/v1.1/OS/schema/catalog.xml
Of course, that idea is simple and probably was implemented many times! Indeed, several XML catalog formats exist now. One of them – OASIS XML Catalogs v1.1 – is apparently the most prominent standard, which is used by FlexDoc/XML.
'org.apache.xerces.util.XMLCatalogResolver'
class included in Apache Xerces2 (see
Apache Xerces2 | Using XML Catalogs).
When the locations of OASIS XML Catalog files are specified,
they are passed to the instance of XMLCatalogResolver
, which is registered on the Apache XML parser used to read XML files.
After that, the DTD references specified in the XML files will be automatically resolved according to the catalog mappings.
Furthermore, the prepared instance of XMLCatalogResolver
will be used also by the 'resolveURI()'
function available in
FlexQuery-expressions.
This function plays a key role within the templates when loading and processing of the XML files referenced from other XML files.
(For instance, it is used in XSDDoc templates to process XML schema <xs:import>
elements).
For further information about this, please see:
In this case, the necessary XML catalog(s) must be specified with -xmlcatalog option on the generator command-line or in the generator GUI (see Assigning XML Catalog(s)).
{flexdoc-xml}/lib/resources
{flexdoc-xml}/templates/XSDDoc/xmltype/
.
But now, they have been moved in a more central location so as to reuse them in other template applications (e.g. WSDLDoc)
as well as during the generation of some examples.
{flexdoc-xml}/lib/resources/catalog.xml
The default XML catalog is not activated automatically whenever some XML catalogs might be used (see above). Instead, like all other XML catalogs, it must be selected explicitly (e.g. with -xmlcatalog option or xsd.catalogs property). The difference is that it can be specified not only with a physical URL or pathname (leading to the catalog file itself), but using the following abstract URI:
urn:flexdoc-xyz:xml:defaultcatalog
-xmlcatalog urn:flexdoc-xyz:xml:defaultcatalog
-defaultcatalog
command line option is provided because the default XML catalog is extremely important for big template applications like XSDDoc.
For instance, the "xsddoc" XML Type, on which XSDDoc templates are based, itself is based on the XML Schema for XML schemas: http://www.w3.org/2001/XMLSchema.xsd. If that schema cannot be loaded, the XML Type won't be initialized and XSDDoc won't work; nor even can it be edited in the Template Designer!
So, if something is wrong with your FlexDoc/XML main configuration file (flexdoc.config), you may always use the -defaultcatalog option as the last resort.