xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From santiag...@apache.org
Subject cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/compiler ElementAvailableCall.java
Date Mon, 22 Apr 2002 16:35:55 GMT
santiagopg    02/04/22 09:35:55

  Modified:    java/src/org/apache/xalan/xsltc/compiler Tag:
                        jaxp-ri-1_2_0-fcs-branch ElementAvailableCall.java
  Log:
  Added namespace support to the implementation of element-available().
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.4.4.1   +6 -5      xml-xalan/java/src/org/apache/xalan/xsltc/compiler/ElementAvailableCall.java
  
  Index: ElementAvailableCall.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/ElementAvailableCall.java,v
  retrieving revision 1.4
  retrieving revision 1.4.4.1
  diff -u -r1.4 -r1.4.4.1
  --- ElementAvailableCall.java	1 Feb 2002 20:07:08 -0000	1.4
  +++ ElementAvailableCall.java	22 Apr 2002 16:35:55 -0000	1.4.4.1
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: ElementAvailableCall.java,v 1.4 2002/02/01 20:07:08 tmiller Exp $
  + * @(#)$Id: ElementAvailableCall.java,v 1.4.4.1 2002/04/22 16:35:55 santiagopg Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -91,10 +91,11 @@
        * Returns the result that this function will return
        */
       public boolean getResult() {
  -	final Parser parser = getParser();
  -	final LiteralExpr arg = (LiteralExpr)argument();
  -	final QName qname = parser.getQName(arg.getValue());
  -	return(parser.elementSupported(qname));
  +	final LiteralExpr arg = (LiteralExpr) argument();
  +	final String qname = arg.getValue();
  +	final int index = qname.indexOf(':');
  +	final String localName = (index > 0) ? qname.substring(index + 1) : qname;
  +	return getParser().elementSupported(arg.getNamespace(), localName);
       }
   
       /**
  
  
  

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


Mime
View raw message