You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/06/03 01:42:48 UTC
DO NOT REPLY [Bug 1789] -
Error when using a entity containing a element
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1789>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1789
Error when using a entity containing a <xsl:text> element
------- Additional Comments From john@vasileff.com 2002-06-02 23:42 -------
Workaround / possible indication of problem:
Seems like the tag's namespace is recognized correctly, but the name of the tag
is not. I found this to work:
<!ENTITY text "<text xmlns='http://www.w3.org/1999/XSL/Transform'/>">
<!ENTITY t_nbsp "&text; &text;">
If the definition of text is changed to a non-xsl namespace (either syntax),
there are no errors and the text tag becomes part of the result tree. Defined
as above it works as expected. Of course, defined as <xsl:text/> I get the "not
allowed in this position" error.
FYI, I tried reading in the stylesheet as both a StreamSource and SAXSource. I
imagine using a DOMSource may not exhibit the problem.