W3C home > Mailing lists > Public > xsl-editors@w3.org > January to March 2001

Forbidden character issue not addressed in XSLT 1.1 WD

From: Mike Brown <mbrown@corp.webb.net>
Date: Fri, 5 Jan 2001 15:46:44 -0700
Message-ID: <8D96EDA0AC04D31197B400A0C96C1480F70951@OSSEX1>
To: "'xsl-editors@w3.org'" <xsl-editors@w3.org>
It is possible for a result tree to contain characters that are not allowed
in a well-formed XML general parsed entity.

 - the XSLT processor may have obtained the source or stylesheet tree from a
DOM document object containing the forbidden characters

 - the stylesheet may call an extension function that returns an object
containing the forbidden characters

Since there is no provision in the spec for removing these characters, it is
possible for the XML output method to fail to meet the requirement of
serializing the result tree as a well-formed XML general parsed entity.

I suggest adding a clause to require an XSLT processor to remove the
forbidden characters during output, and to signal an error.

I believe this only applies to the XML output method; HTML allows any
character.

It might be prudent to also acknowledge this issue in an addendum or future
revision of the XPath spec.

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at            My XML/XSL resources:
webb.net in Denver, Colorado, USA              http://skew.org/xml/
Received on Friday, 5 January 2001 17:46:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:52 GMT