dbertoni    00/05/29 15:47:31

  Modified:    c/src/XSLT Stylesheet.cpp Stylesheet.hpp
  Log:
  New code for getting current include file base identifier.
  
  Revision  Changes    Path
  1.19      +15 -0     xml-xalan/c/src/XSLT/Stylesheet.cpp
  
  Index: Stylesheet.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/Stylesheet.cpp,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- Stylesheet.cpp    2000/05/26 19:21:50     1.18
  +++ Stylesheet.cpp    2000/05/29 22:47:30     1.19
  @@ -1158,6 +1158,21 @@
   
   
   
  +const XalanDOMString
  +Stylesheet::getCurrentIncludeBaseIdentifier() const
  +{
  +     if (m_includeStack.size() == 0)
  +     {
  +             return getBaseIdentifier();
  +     }
  +     else
  +     {
  +             return m_includeStack.back()->getURLText();
  +     }
  +}
  +
  +
  +
   void
   Stylesheet::processNSAliasElement(
                        const XalanDOMString&                   name,
  
  
  
  1.12      +11 -0     xml-xalan/c/src/XSLT/Stylesheet.hpp
  
  Index: Stylesheet.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XSLT/Stylesheet.hpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Stylesheet.hpp    2000/05/08 17:29:35     1.11
  +++ Stylesheet.hpp    2000/05/29 22:47:30     1.12
  @@ -365,6 +365,17 @@
        }
   
        /**
  +      * Retrieve the base identifier for the most recently
  +      * included stylesheet.  This will return the same value
  +      * as getBaseIdentifier(), if no include is being
  +      * processed.
  +      * 
  +      * @return string for base identifier
  +      */
  +     const XalanDOMString
  +     getCurrentIncludeBaseIdentifier() const;
  +
  +     /**
         * Process an xsl:namespace-alias element.
         *
         * @param name   the element name.
  
  
  

Reply via email to