how do you get Xalan to validate stylesheets?
Posted: Thu Jan 20, 2005 9:14 pm
Hi,
This is not really a question about how to use Oxygen, but rather a "how did you do that?" question.
We are using Xalan for XSLT transformation in another environment, namely, within Cocoon. When we feed it stylesheets that have structural errors in them, Xalan sometimes does not complain but merely generates incorrect output. Or it gives an error message that bears no apparent relationship to the actual mistake in the stylesheet. Saxon does a better job. For example, if the stylesheet contains an <xsl:choose> that has a <debug> child element, Xalan (under Cocoon) gives an irrelevant error message, but Saxon gives a helpful one.
However, in Oxygen, when I validate the aforementioned stylesheet (Shift+Ctrl+V) using Xalan, it gives a pertinent error message similar to Saxon's. So my question is, how did you do that? Do you have to pass parameters to Xalan, or call a particular class?
(It's possible that the difference is that I'm using an older version of Xalan under Cocoon. But I don't think so. In any case, knowing how you got Xalan to validate a stylesheet in Oxygen would help me solve this problem.)
Thanks,
Lars
This is not really a question about how to use Oxygen, but rather a "how did you do that?" question.
We are using Xalan for XSLT transformation in another environment, namely, within Cocoon. When we feed it stylesheets that have structural errors in them, Xalan sometimes does not complain but merely generates incorrect output. Or it gives an error message that bears no apparent relationship to the actual mistake in the stylesheet. Saxon does a better job. For example, if the stylesheet contains an <xsl:choose> that has a <debug> child element, Xalan (under Cocoon) gives an irrelevant error message, but Saxon gives a helpful one.
However, in Oxygen, when I validate the aforementioned stylesheet (Shift+Ctrl+V) using Xalan, it gives a pertinent error message similar to Saxon's. So my question is, how did you do that? Do you have to pass parameters to Xalan, or call a particular class?
(It's possible that the difference is that I'm using an older version of Xalan under Cocoon. But I don't think so. In any case, knowing how you got Xalan to validate a stylesheet in Oxygen would help me solve this problem.)
Thanks,
Lars