According to the non-normative DTD fragment in the XSLT spec xsl:import
must occur at the very beginning withing the xsl:stylesheet element.
Only xsl:include instances may occur later. Your new version has
probably started checking for these rules where older versions did not.
Please realize that this was a question better directed at the Xalan
User mailing list. I hope this helps anyway.

<!ENTITY % top-level "
 (xsl:import*,
  (xsl:include
  | xsl:strip-space
  | xsl:preserve-space
  | xsl:output
  | xsl:key
  | xsl:decimal-format
  | xsl:attribute-set
  | xsl:variable
  | xsl:param
  | xsl:template
  | xsl:namespace-alias
  %non-xsl-top-level;)*)
">

On 15.04.2003 20:15:40 Louis.Masters wrote:
> I just upgraded to fop 0.20.5rc2 and switched to jaxp (newest version) and
> now all of my stylesheets transformations fail with the following:
> 
> javax.xml.transform.TransformerException: xsl:import is not allowed in this
> position in the stylesheet!
>      at
> org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:951)
>      at
<snip/>
> 
> I think it has something to do with the jar files - can someone please send
> me a jar file version list for this version of FOP and/or any suggestions
> on how to fix this.


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to