Shelli D. Orton writes: >I set XML Spy to use Xalan by setting Tools|Options|XSL|External XSL... >I'm not sure which version of Xalan is being used. I've downloaded >Xalan-J 2.5, and XML Spy doesn't report any errors when using that jar >file either.
You could try the stylesheet referenced at this FAQ entry: http://xml.apache.org/xalan-j/faq.html#faq-N1005C And here's one of our test cases: <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- FileName: conditionalerr02 --> <!-- Document: http://www.w3.org/TR/xslt --> <!-- DocVersion: 19991116 --> <!-- Section: 9.2 --> <!-- Creator: David Marston --> <!-- Purpose: Test xsl:choose without xsl:when, but otherwise exists. --> <!-- ExpectedException: Required Element not found: xsl:when --> <xsl:template match="doc"> <out> <xsl:choose> <xsl:otherwise>1</xsl:otherwise> </xsl:choose> </out> </xsl:template> </xsl:stylesheet> The above should result in the indicated error. .................David Marston
