cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/blocks/batik/java/org/apache/cocoon/transformation FragmentExtractorTransformer.java
Date Tue, 22 Oct 2002 04:15:28 GMT
vgritsenko    2002/10/21 21:15:28

  Modified:    src/java/org/apache/cocoon/transformation Tag:
                        cocoon_2_0_3_branch
                        FragmentExtractorTransformer.java
               src/blocks/batik/java/org/apache/cocoon/transformation
                        FragmentExtractorTransformer.java
  Log:
  minor changes
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.13.2.1  +4 -9      xml-cocoon2/src/java/org/apache/cocoon/transformation/Attic/FragmentExtractorTransformer.java
  
  Index: FragmentExtractorTransformer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/transformation/Attic/FragmentExtractorTransformer.java,v
  retrieving revision 1.13
  retrieving revision 1.13.2.1
  diff -u -r1.13 -r1.13.2.1
  --- FragmentExtractorTransformer.java	22 Feb 2002 07:03:56 -0000	1.13
  +++ FragmentExtractorTransformer.java	22 Oct 2002 04:15:28 -0000	1.13.2.1
  @@ -116,8 +116,6 @@
   
       private int extractLevel;
   
  -    private int fragmentID;
  -
       /**
        * Configure this transformer.
        */
  @@ -136,7 +134,6 @@
       public void setup(SourceResolver resolver, Map objectModel, String src, Parameters
parameters)
               throws ProcessingException, SAXException, IOException {
           extractLevel = 0;
  -        fragmentID = 0;
           prefixMap = new HashMap();
       }
   
  @@ -222,8 +219,7 @@
       throws SAXException {
           if (this.extractURI.equals(uri) && this.extractElement.equals(loc)) {
               extractLevel++;
  -            fragmentID++;
  -            getLogger().debug("FragmentExtractorTransformer extractLevel now " + extractLevel
+ ".");
  +            getLogger().debug("extractLevel now " + extractLevel + ".");
   
               // Start the DOM document
               this.currentBuilder = new DOMBuilder();
  @@ -265,7 +261,7 @@
               this.currentBuilder.endElement(uri,loc,raw);
               if (this.extractURI.equals(uri) && this.extractElement.equals(loc))
{
                   extractLevel--;
  -                getLogger().debug("FragmentExtractorTransformer extractLevel now " + extractLevel
+ ".");
  +                getLogger().debug("extractLevel now " + extractLevel + ".");
   
                   if (extractLevel == 0) {
                       // finish building the DOM. remove existing prefix mappings.
  @@ -280,7 +276,7 @@
   
                       Document doc = this.currentBuilder.getDocument();
                       String id = FragmentExtractorGenerator.store(doc);
  -                    getLogger().debug("FragmentExtractorTransformer stored document " +
id + ".");
  +                    getLogger().debug("Stored document " + id + ".");
   
                       // Insert ref.
                       super.startPrefixMapping("fe", FE_URI);
  @@ -459,5 +455,4 @@
               this.currentBuilder.comment(ch,start,len);
           }
       }
  -
   }
  
  
  
  1.2       +4 -4      xml-cocoon2/src/blocks/batik/java/org/apache/cocoon/transformation/FragmentExtractorTransformer.java
  
  Index: FragmentExtractorTransformer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/blocks/batik/java/org/apache/cocoon/transformation/FragmentExtractorTransformer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FragmentExtractorTransformer.java	16 Sep 2002 15:35:06 -0000	1.1
  +++ FragmentExtractorTransformer.java	22 Oct 2002 04:15:28 -0000	1.2
  @@ -262,7 +262,7 @@
               extractLevel++;
               fragmentID++;
               if (this.getLogger().isDebugEnabled()) {
  -                getLogger().debug("FragmentExtractorTransformer extractLevel now " + extractLevel
+ ".");
  +                getLogger().debug("extractLevel now " + extractLevel + ".");
               }
   
               try {
  @@ -312,7 +312,7 @@
               if (this.extractURI.equals(uri) && this.extractElement.equals(loc))
{
                   extractLevel--;
                   if (this.getLogger().isDebugEnabled()) {
  -                    getLogger().debug("FragmentExtractorTransformer extractLevel now "
+ extractLevel + ".");
  +                    getLogger().debug("extractLevel now " + extractLevel + ".");
                   }
   
                   if (extractLevel == 0) {
  @@ -344,7 +344,7 @@
                       }
   
                       if (this.getLogger().isDebugEnabled()) {
  -                        getLogger().debug("FragmentExtractorTransformer stored document
" + id + ".");
  +                        getLogger().debug("Stored document " + id + ".");
                       }
   
                       // Insert ref.
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message