You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Timm, Sean" <ST...@mailgo.com> on 2000/01/27 22:07:03 UTC

-- version is required

The XSLT spec says that the version attribute is required for the
xsl:stylesheet tag.  I didn't realize it because Xalan was letting me get
away without it.  I only discovered it because Microsoft released a
technology preview of their new XSLT/closer-to-compliant parser, and when I
tried to open up an XML file that referenced an XSLT script, the browser
spit out an error saying that "version" was required.

Note -- my experiments are using the command-line processing of
files...whether or not this makes any difference, I have no idea.

It kind of surprised me that Xalan wasn't requiring me to put this in the
XSL even though the spec requires it, so I decided to experiment further.  I
removed the xsl:stylesheet tags completely, and it still ran through without
spitting out any errors, but the file it spit out was the XSL file itself.

I assume that Xalan must be placing some of this stuff in while the file is
being parsed, but I'd personally prefer it to error out at least if the
version attribute isn't there for the xsl:stylesheet tag.  Especially since
I ran into the browser issue...I know better now, but no thanks to Xalan.

Anyone else have any thoughts/comments on this?  I'd attempt to patch this
if I had any idea where to start...

- Sean T.