I've just started playing with oXygen as an XML plug-in for Eclipse.
So far, it seems great; however, I've got a large set of XSL
stylesheets I'd like to work on, and unfortunately the built-in
validation says that they're invalid. They do currently work, using
Xalan as the XSL-processing engine, so I'm reluctant to change the
structure radically.

In a nutshell, here's what's happening; this is obviously a huge
simplification, and in the real project I get a *zillion* similar
warnings:

----- Main file -----
<xsl:transform>
   <xsl:include href="include/file1.xsl"/>
   <xsl:include href="include/file2.xsl"/>
</xsl:transform>
----- End main file -----

----- include/file1.xsl -----
<xsl:transform>
   <xsl:variable name="foo">abc</xsl:variable>
</xsl:transform>
----- End of file1.xsl -----

----- include/file2.xsl -----
<xsl:transform>
   <xsl:template match="root">
       <root foo="{$foo}"/>
   </xsl:template>
</xsl:transform>
----- End of file2.xsl -----

This successfully transforms the tiny document "<root/>" into "<root
foo='abc'/>"; however, when I open include/file2.xsl in oXygen, I
always get a warning that variable "foo" has not been initialised. Is
there a way to make that not happen?

Thanks for any suggestions,

MEF

--
Mary Ellen Foster
http://homepages.inf.ed.ac.uk/mef/
_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Reply via email to