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 2001/05/17 06:13:27 UTC

[Bug 1789] New - Error when using a entity containing a element

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1789

*** shadow/1789	Wed May 16 21:13:26 2001
--- shadow/1789.tmp.17363	Wed May 16 21:13:26 2001
***************
*** 0 ****
--- 1,39 ----
+ +============================================================================+
+ | Error when using a entity containing a <xsl:text> element                  |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 1789                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.0.1                   |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version:                         |
+ |     Priority:                           Component: org.apache.xalan.transf |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xalan-dev@xml.apache.org                                     |
+ |  Reported By: rmeade@outreach.hawaii.edu                                   |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ I get the following error when I execute the stylesheet below:
+ 
+ XSLT Error (javax.xml.transform.TransformerConfigurationException): xsl:text is 
+ not allowed in this position in the stylesheet!
+ 
+ <?xml version="1.0"?>
+ 
+ <!DOCTYPE xsl:stylesheet [
+   <!ENTITY br "<xsl:text>&#xa;</xsl:text>">
+ ]>
+ 
+ <xsl:stylesheet
+   xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
+   version="1.0"
+ >
+ 
+ <xsl:template match="/">
+   This doesn't give the error: <xsl:text>&#xa;</xsl:text>
+   But using this entity does: &br;
+   Shouldn't they be equivalent?
+ </xsl:template>
+ 
+ </xsl:stylesheet>