Examples

Most of the APEX examples in apex/examples/ can be run using the apex/examples/build.xml Ant build file. The only example which cannot be run using Ant is the PythonPoint example.

Invoking the ant command without any arguments from the apex/examples directory runs all examples and produces output describing tasks being performed and files being created. ant clean deletes all files created when running the examples.

Note

  • The Ant output does not describe the goals or rationale for the examples. To obtain this information, look at the README.txt files in each of the apex/examples/ subdirectories.

  • Many of the example data files are processed not directly using APEX, but rather with a stylesheet that imports apex.xsl and adds a DOCTYPE specifying the architecture's DTD's system identifier to the result. This is done so that the result can be validated with respect to the architecture's DTD.

If you do not have Ant installed, or if for some other reason you want to run the examples by hand, here are instructions for processing each data file individually.

examples\catalog

catalog\widgetset.xml

Apply APEX customization catalog\catalog.xsl with parameters:

  • name = "catalog"

catalog\nauto.xml

Apply APEX customization catalog\catalog.xsl with parameters:

  • name = "catalog"

  • auto = "nArcAuto"

catalog\nignore.xml

Apply APEX customization catalog\catalog.xsl with parameters:

  • name = "catalog"

  • auto = "nArcAuto"

  • ignore-data-att = "catalog-ignore"

catalog\rich-text.xml

Apply APEX customization catalog\catalog.xsl with parameters:

  • name = "catalog"

  • auto = "nArcAuto"

catalog\suppress.xml

Apply APEX customization catalog\catalog.xsl with parameters:

  • name = "catalog"

  • suppressor-att = "catalog-suppress"

examples\customization

customization\art.xml

Apply APEX customization customization\art.xsl with parameters:

  • name = "inv"

  • auto = "nArcAuto"

examples\psl

psl\idef3.xml

Apply APEX customization psl\pslcore.xsl with parameters:

  • name = "psl"

  • auto = "nArcAuto"

  • suppressor-att = "psl-processing"

  • renamer-att = "psl-atts"

  • strip = "occur occur-atts"

psl\idef3.xml

Apply APEX customization psl\actoccur.xsl with parameters:

  • name = "occur"

  • auto = "nArcAuto"

  • renamer-att = "occur-atts"

  • strip = "psl psl-processing psl-atts"

examples\schema

  1. Apply ATTS stylesheet to schema\ipo.rng, and save the result in schema\ipo.xsl.

  2. Apply schema\ipo.xsl to schema\ipo.xml, and save the result in schema\ipo-normalized.xml.

  3. Apply APEX stylesheet to schema\ipo-normalized.xml with parameters:

    • name = "po"

examples\xaf

xaf\simple.xml

Apply APEX stylesheet with parameters:

  • name = "biblio"

  • auto = "nArcAuto"

xaf\auto-implied.xml

Apply APEX stylesheet with parameters:

  • name = "html"

  • auto = "ArcAuto"

xaf\ignore.xml

Apply APEX stylesheet with parameters:

  • name = "html"

  • auto = "nArcAuto"

  • ignore-data-att = "html-ignore"

xaf\renamer.xml

Apply APEX stylesheet with parameters:

  • name = "html"

  • auto = "nArcAuto"

  • renamer-att = "html-renamer"

xaf\suppress.xml

Apply APEX stylesheet with parameters:

  • name = "note"

  • auto = "ArcAuto"

  • suppressor-att = "suppress"