You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2001/08/13 19:29:25 UTC
cvs commit: xml-xalan/c/Tests/Transformer TestXalanTransformer.cpp
dbertoni 01/08/13 10:29:25
Modified: c/Tests/Transformer TestXalanTransformer.cpp
Log:
Fixed errors compiling stylesheets.
Revision Changes Path
1.4 +26 -3 xml-xalan/c/Tests/Transformer/TestXalanTransformer.cpp
Index: TestXalanTransformer.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/Tests/Transformer/TestXalanTransformer.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- TestXalanTransformer.cpp 2001/06/20 16:14:33 1.3
+++ TestXalanTransformer.cpp 2001/08/13 17:29:25 1.4
@@ -140,7 +140,14 @@
XalanTransformer xalan;
- const XalanCompiledStylesheet* const css = xalan.compileStylesheet(theXSLFileName);
+ const XalanCompiledStylesheet* css = 0;
+
+ if (xalan.compileStylesheet(theXSLFileName, css) != 0)
+ {
+ cout << xalan.getLastError();
+
+ return 0;
+ }
for(int i=0; i<1; ++i)
{
@@ -223,8 +230,24 @@
XalanInitialize();
XalanHandle xalan = CreateXalanTransformer();
- XalanCSSHandle theXalanCSS2 = XalanCompileStylesheet(theXSLFileName2, xalan);
- XalanCSSHandle theXalanCSS4 = XalanCompileStylesheet(theXSLFileName4, xalan);
+ XalanCSSHandle theXalanCSS2;
+ XalanCSSHandle theXalanCSS4;
+
+ if (XalanCompileStylesheet(theXSLFileName2, xalan, &theXalanCSS2) != 0)
+ {
+ puts("Error");
+ puts(XalanGetLastError(xalan));
+
+ return 0;
+ }
+
+ XalanCompileStylesheet(theXSLFileName4, xalan, &theXalanCSS4) != 0)
+ {
+ puts("Error");
+ puts(XalanGetLastError(xalan));
+
+ return 0;
+ }
for(int i=0; i<2; ++i)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org