You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mo...@apache.org on 2001/08/08 11:17:09 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/compiler LiteralElement.java

morten      01/08/08 02:17:09

  Modified:    java/src/org/apache/xalan/xsltc/compiler LiteralElement.java
  Log:
  Applied a fix to our class for handling literal result elements. The only
  attributes in the XSLT namespace we handle in LREs are exclude-result-prefixes
  and extension-element-prefixes. We have a test to check if an attribute is
  in the XSLT namespace, and if it is we ignore the attribute. This test was
  placed before the test for the two XSLT attributes we do want to handle,
  causing us to ignore all xsl:exclude-result-prefixes attributes in LREs.
  PR:		bugzilla 1506
  Obtained from:	n/a
  Submitted by:	morten@apache.org
  Reviewed by:	morten@apache.org
  
  Revision  Changes    Path
  1.9       +5 -5      xml-xalan/java/src/org/apache/xalan/xsltc/compiler/LiteralElement.java
  
  Index: LiteralElement.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/LiteralElement.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- LiteralElement.java	2001/06/14 11:41:58	1.8
  +++ LiteralElement.java	2001/08/08 09:17:09	1.9
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: LiteralElement.java,v 1.8 2001/06/14 11:41:58 morten Exp $
  + * @(#)$Id: LiteralElement.java,v 1.9 2001/08/08 09:17:09 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -282,10 +282,6 @@
   	    if (qname == parser.getUseAttributeSets()) {
   		setFirstAttribute(new UseAttributeSets(val, parser));
   	    }
  -	    // Ignore all other attributes in XSL namespace
  -	    else if ((uri != null) && (uri.equals(XSLT_URI))) {
  -		
  -	    }
   	    // Handle xsl:extension-element-prefixes
   	    else if (qname == parser.getExtensionElementPrefixes()) {
   		stable.excludeNamespaces(val);
  @@ -293,6 +289,10 @@
   	    // Handle xsl:exclude-result-prefixes
   	    else if (qname == parser.getExcludeResultPrefixes()) {
   		stable.excludeNamespaces(val);
  +	    }
  +	    // Ignore all other attributes in XSL namespace
  +	    else if ((uri != null) && (uri.equals(XSLT_URI))) {
  +		
   	    }
   	    // Handle literal attributes (attributes not in XSL namespace)
   	    else {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org