swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
      Other Library Functions  
function  

xslt.compile

 
 

Library: XML and parsing, XSLT support (OMXSLT)
Import: omxslt.xmd
Return type: stylesheet
Returns: 

A compiled XSLT stylesheet.


Declaration

  export external stylesheet function compile value source stylesheet

Argument definitions

stylesheet
is the XSLT stylesheet to be compiled.


Purpose

Use compile to generate a pre-compiled form of the XSLT stylesheet. In situations where a stylesheet will be used many times on multiple inputs, this will likely reduce processing time.

Usage Notes

It is typically not necessary to use compile, as OmniMark can automatically compile an XSLT stylesheet from source form to compiled form when the need arises. However, should the same transformation be required for multiple inputs, compiling the stylesheet should improve performance.

Example


          import "omxslt.xmd" prefixed by xslt.

          process
             local stream          filenames  initial { "input1.xml", "input2.xml" }
             local xslt.stylesheet stylesheet initial { xslt.compile file "stylesheet1.xsl" }

             repeat over filenames
                do xml-parse scan xslt.reader with stylesheet into file filenames
                   suppress
                done
             again

          element #implied
             suppress

        Other Library Functions
   xslt.compile
   xslt.omxslt-version
   xslt.reader
   xslt.stylesheet
   xslt.writer
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACYLIBRARIES ] [ ERRORS ]

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:46:08 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.