You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2001/06/06 23:12:59 UTC

cvs commit: xml-xalan/c/src/DOMSupport DOMServices.hpp

dbertoni    01/06/06 14:12:58

  Modified:    c/src/DOMSupport DOMServices.hpp
  Log:
  Get parent of attribute node by calling getOwnerElement().  Deprecated findOwnerElement().
  
  Revision  Changes    Path
  1.22      +6 -2      xml-xalan/c/src/DOMSupport/DOMServices.hpp
  
  Index: DOMServices.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/DOMSupport/DOMServices.hpp,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- DOMServices.hpp	2001/05/14 00:58:27	1.21
  +++ DOMServices.hpp	2001/06/06 21:12:54	1.22
  @@ -523,9 +523,9 @@
   		if(node.getNodeType() == XalanNode::ATTRIBUTE_NODE)
   		{
   #if defined(XALAN_OLD_STYLE_CASTS)
  -			return findOwnerElement((const XalanAttr&)node);
  +			return ((const XalanAttr&)node).getOwnerElement();
   #else
  -			return findOwnerElement(static_cast<const XalanAttr&>(node));
  +			return static_cast<const XalanAttr&>(node).getOwnerElement();
   #endif
   		}
   		else
  @@ -579,6 +579,8 @@
   	 * necessary when a given DOM implementation returns 0 for
   	 * XalanAttr::getOwnerElement()
   	 *
  +	 * @deprecated We now require DOM Level 2 support, so XalanAttr::getOwnerElement() always works.
  +	 *
   	 * @param attr The XalanAttr instance for which to find the owner element
   	 * @return A pointer to the element node that owns the attribute
   	 */
  @@ -601,6 +603,8 @@
   	 * If necessary, do a brute-force search for an owner element.  This is
   	 * necessary when a given DOM implementation returns 0 for
   	 * XalanAttr::getOwnerElement()
  +	 *
  +	 * @deprecated We now require DOM Level 2 support, so XalanAttr::getOwnerElement() always works.
   	 *
   	 * @param attr The XalanAttr instance for which to find the owner element
   	 * @param element The document element
  
  
  

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