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