curcuru 2002/06/21 08:50:14
Modified: java/xdocs/sources/xalan faq.xml
Log:
Add doc about calling checkEnvironment as a stylesheet extension
Revision Changes Path
1.22 +14 -0 xml-xalan/java/xdocs/sources/xalan/faq.xml
Index: faq.xml
===================================================================
RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xalan/faq.xml,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- faq.xml 8 Feb 2002 15:56:32 -0000 1.21
+++ faq.xml 21 Jun 2002 15:50:14 -0000 1.22
@@ -118,6 +118,20 @@
NoClassDefFound error from a command-line application, run
EnvironmentCheck on the command line with exactly the same
classpath. If the error occurs inside your Java application (or in a
servlet, etc.), be sure to call the
EnvironmentCheck checkEnvironment(...) method from within your running
application.</p>
+ <p>Best of all, you can call checkEnvironment from a stylesheet using
extensions:</p>
+<source>
+<?xml version="1.0"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
+ xmlns:xalan="http://xml.apache.org/xalan"
+ exclude-result-prefixes="xalan">
+<xsl:output indent="yes"/>
+
+<xsl:template match="/">
+ <out>
+ <xsl:copy-of select="xalan:checkEnvironment()"/>
+ </out>
+</xsl:template>
+</xsl:stylesheet></source>
</a>
</faq>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]