Method and apparatus for viewing electronic commerce-related documents
The present invention includes a method of providing users with formatted access to XML and similar documents received from trading partners using a general purpose viewer or browser. Particular aspects of the present invention are described in the claims, specification and drawings.
1. A method of referring to a module from within an Extensible Stylesheet Language transforms (XSLT) style sheet, the module identified by a URI, including:
defining in a first module of an XSLT style sheet a module-referencing variable to hold a string corresponding to a universal resource indicator (URI);
assigning to the module-referencing variable a string corresponding to a URI at runtime and subsequent to initialization of the first module;
the first module referencing an XSLT style sheet module based on the module-referencing variable; and
applying the referenced module to generate an output.
2. A method of controlling the loading of modules of an Extensible Stylesheet Language transforms (XSLT) style sheet, including:
defining a conditional syntax for including an external segment of XSLT code from disk in an XSLT style sheet;
parsing the XSLT style sheet utilizing the conditional syntax;
determining whether a condition specified in the conditional syntax succeeds or fails; and
loading the external segment of XSLT code from disk if the condition succeeds.