giacomo     00/10/31 09:40:47

  Modified:    src/org/apache/cocoon/components/language/markup/sitemap/java
                        Tag: xml-cocoon2 sitemap.xsl
  Log:
  Fixed the NPE within xerces parser. Thanks to Davanum which posted me the 
patch
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.58  +5 -5      
xml-cocoon/src/org/apache/cocoon/components/language/markup/sitemap/java/Attic/sitemap.xsl
  
  Index: sitemap.xsl
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon/src/org/apache/cocoon/components/language/markup/sitemap/java/Attic/sitemap.xsl,v
  retrieving revision 1.1.2.57
  retrieving revision 1.1.2.58
  diff -u -r1.1.2.57 -r1.1.2.58
  --- sitemap.xsl       2000/10/30 23:02:43     1.1.2.57
  +++ sitemap.xsl       2000/10/31 17:40:44     1.1.2.58
  @@ -76,7 +76,7 @@
        *
        * @author <a href="mailto:[EMAIL PROTECTED]">Giacomo 
Pati</a>
        * @author <a href="mailto:[EMAIL PROTECTED]">Berin 
Loiritsch</a>
  -     * @version CVS $Revision: 1.1.2.57 $ $Date: 2000/10/30 23:02:43 $
  +     * @version CVS $Revision: 1.1.2.58 $ $Date: 2000/10/31 17:40:44 $
        */
       public class <xsl:value-of select="@file-name"/> extends AbstractSitemap 
{
         static {
  @@ -460,14 +460,14 @@
         <!-- check if this selector is a factory ? -->
         <xsl:variable name="is-factory">
           <xsl:choose>
  -          <xsl:when 
test="/map:sitemap/map:components/map:selectors/map:[EMAIL PROTECTED]">
  +          <xsl:when 
test="/map:sitemap/map:components/map:selectors/map:[EMAIL PROTECTED]">
               <xsl:value-of select="false()"/>
             </xsl:when>
  -          <xsl:when 
test="/map:sitemap/map:components/map:selectors/map:[EMAIL PROTECTED]/@factory">
  +          <xsl:when 
test="/map:sitemap/map:components/map:selectors/map:[EMAIL PROTECTED]/@factory">
               <xsl:value-of select="true()"/>
             </xsl:when>
  -          <xsl:when 
test="/map:sitemap/map:components/map:selectors/map:[EMAIL PROTECTED]/@src">
  -            <xsl:value-of select="java:isFactory($factory-loader, 
string(/map:sitemap/map:components/map:selectors/map:[EMAIL PROTECTED]/@src))"/>
  +          <xsl:when 
test="/map:sitemap/map:components/map:selectors/map:[EMAIL PROTECTED]/@src">
  +            <xsl:value-of select="java:isFactory($factory-loader, 
string(/map:sitemap/map:components/map:selectors/map:[EMAIL PROTECTED]/@src))"/>
             </xsl:when>
             <xsl:otherwise>
               <xsl:value-of select="false()"/>
  
  
  

Reply via email to