[oXygen-user] Validating multi-file XSL transformations with
Sorin Ristache
Mon Jun 12 10:20:26 CDT 2006
Hello,
This was discussed on the <oXygen/> forum:
http://www.oxygenxml.com/forum/ftopic1670.html
Just disable the automatic validation in your preferences (Options ->
Preferences -> Editor -> Document Checking -> Validate as you type) and
apply manual validation (the Validate toolbar button) only for the main
module of your XSLT stylesheet, not the included ones.
Best regards,
Sorin
Mary Ellen Foster wrote:
> 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
>
More information about the oXygen-user
mailing list