Mukul Gandhi created XALANJ-2781:
------------------------------------

             Summary: implementation of xsl template match pattern 
schema-element(elemName)
                 Key: XALANJ-2781
                 URL: https://issues.apache.org/jira/browse/XALANJ-2781
             Project: XalanJ2
          Issue Type: New Feature
      Security Level: No security risk; visible to anyone (Ordinary problems in 
Xalan projects.  Anybody can view the issue.)
          Components: transformation, Xalan-interpretive
            Reporter: Mukul Gandhi
            Assignee: Mukul Gandhi


I'm creating this jira issue, to track implementation of this new XSL 
transformation feature on Xalan-J's XSL 3 dev repos branch. The requirements 
for this are as follows, as per XSLT 3 specification.

Given that, within an XSL stylesheet there are two template definitions as 
mentioned below are present.

1)
<xsl:template match="schema-element(abc)">
  ...
</xsl:template>

2)
<xsl:template match="abc">
  ...
</xsl:template>

An XML input element 'abc' context item occurs, and an XSL template needs to be 
selected to process this context element, then an XSL transformation processor 
shall select the XSL template as follows.
(a) If an XML input document has been validated with a schema and a top-level 
element declaration "abc" exist, then XSL template 1) shall be selected for 
processing.
(b) If an XML input document has been validated with a schema and a top-level 
element declaration "abc" doesn't exist, or if schema validation has not been 
done, then XSL template 2) shall be selected for processing.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@xalan.apache.org
For additional commands, e-mail: dev-h...@xalan.apache.org

Reply via email to