This is right, but still, Sablotron was outputting a lot of error
messages instead of stopping at the first one. Patch (go to 'ga'
directory and use -p2):

--- 0.42/ga/src/Sablot/engine/datastr.cpp       Mon Jul 17 18:42:46 2000
+++ Current/ga/src/Sablot/engine/datastr.cpp    Wed Aug 02 12:17:10 2000
@@ -710,7 +710,7 @@
         prefix.empty();
         localPart = p;
     };
-    NZ(resolver) -> resolve(uri = prefix, defaultToo);
+    E( NZ(resolver) -> resolve(uri = prefix, defaultToo) );
     if (strchr(localPart,':'))
         Err1(situation, E_EXTRA_COLON, (char *)(Str &)s)
     else


Tom


[EMAIL PROTECTED] wrote:
> 
> On Mon, Jul 31, 2000 at 10:48:28AM -0400, Tim Crook wrote:
> > Here are the XSL and XML files. When I remove namespace usage from the XSL
> > file, everything works fine.
> 
> Tim, this is a bug in your XSLT document.
> You have to declare the xfa: namespace, and associate it with a URI,
> before you can use it. Namespace declarations do cascade through the
> stylesheet, but lexically rather than dynamically.
> 
> ie. line 32: <xsl:attribute name="xfa:dataNode"> is an error because
>    there is no ancestor element *of that xsl:attribute element* which
>    contains the namespace declaration.
> 
> The simplest fix is to move the declaration
>   xmlns:xfa="http://www.xfa.com/schema/xfa-data"
> into the xsl:stylesheet element, so that it covers the whole stylesheet.
> 
>  .robin.



Reply via email to