Mukul Gandhi created XALANJ-2620:
------------------------------------

             Summary: Using non XSLT elements produce no error
                 Key: XALANJ-2620
                 URL: https://issues.apache.org/jira/browse/XALANJ-2620
             Project: XalanJ2
          Issue Type: Improvement
      Security Level: No security risk; visible to anyone (Ordinary problems in 
Xalan projects.  Anybody can view the issue.)
          Components: Xalan-CmdLine
    Affects Versions: 2.7.2
            Reporter: Mukul Gandhi
            Assignee: Steven J. Hathaway


I've tested with following XSLT stylesheet,

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
                         version="1.0">
 
      <xsl:template1 match="/">
           hello
      </xsl:template1>
 
</xsl:stylesheet>

In this stylesheet example, I've used an element name as "xsl:template1". Upon 
running this XSLT transform with Xalan command line, there's no error reported 
that an element xsl:template1 doesn't belong to XSLT namespace and the 
transformation succeeds.

I think, it'll be good that for such cases, XSLT processor should produce an 
error. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to