This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Currently we have: [ERR XTSE0120] An xsl:stylesheet element must not have any text node children. and: [ERR XTSE0130] It is a static error if the xsl:stylesheet element has a child element whose name has a null namespace URI. I propose to update these errors: [ERR XTSE0120] An xsl:stylesheet, xsl:transform or xsl:package element must not have any text node children. and: [ERR XTSE0130] It is a static error if an xsl:stylesheet, xsl:transform or xsl:package element has a child element whose name has a null namespace URI. We could consider adding to XTSE0130/XTSE0120 other instructions/declarations that have a defined body, i.e. that do not allow a sequence constructor (like xsl:fork, xsl:choose etc). In fact, we could generalize it perhaps.
Or we could say "If a top-level element contains...", since top-level elements are defined as being one of xsl:package, xsl:transform, xsl:stylesheet, xsl:override.
I have applied the suggested changes, which are editorial in that they do not change the technical intent.
SCA closed this bug.