cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/webapp/samples/editor/docs tests.xml
Date Thu, 04 Jul 2002 12:23:32 GMT
cziegeler    2002/07/04 05:23:32

  Modified:    src/java/org/apache/cocoon/transformation
                        SourceWritingTransformer.java
               src/scratchpad/webapp/samples/editor/docs tests.xml
  Log:
  Fixed reinsert function of source writing transformer
  
  Revision  Changes    Path
  1.8       +0 -2      xml-cocoon2/src/java/org/apache/cocoon/transformation/SourceWritingTransformer.java
  
  Index: SourceWritingTransformer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/transformation/SourceWritingTransformer.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- SourceWritingTransformer.java	4 Jul 2002 12:20:37 -0000	1.7
  +++ SourceWritingTransformer.java	4 Jul 2002 12:23:32 -0000	1.8
  @@ -660,8 +660,6 @@
                                   message += ", replacing: " + replacePath;
                                   if (reinsertPath != null) {
                                       Node insertAt = XMLUtil.getSingleNode(parent, reinsertPath);
  -                                    System.out.println("DOC: " + XMLUtils.serializeNodeToXML(parent));
  -                                    System.out.println("Path: " + reinsertPath);
                                       if (insertAt != null) {
                                           while (replaceNode.hasChildNodes() == true) {
                                               insertAt.appendChild(replaceNode.getFirstChild());
  
  
  
  1.2       +2 -2      xml-cocoon2/src/scratchpad/webapp/samples/editor/docs/tests.xml
  
  Index: tests.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/samples/editor/docs/tests.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- tests.xml	1 Jul 2002 15:09:17 -0000	1.1
  +++ tests.xml	4 Jul 2002 12:23:32 -0000	1.2
  @@ -13,7 +13,7 @@
   	Test 1: <a href="test/1">Test 1</a>: the basic source:write test, makes <a
href="result/1">Result 1</a>.
     </para>
     <para>
  -	Test 2: <a href="test/2">Test 2</a>: the source:write namespace test, makes
<a href="result/2">Result 2</a>, with the XLink namespace used inside. <span
class="failure">Known to fail</span> (the written file is unparseable, because the
namespace declaration is missing).
  +	Test 2: <a href="test/2">Test 2</a>: the source:write namespace test, makes
<a href="result/2">Result 2</a>, with the XLink namespace used inside.
     </para>
     <para>
     Test 3: <a href="test/3">Test 3</a>: the source:write new folder test, makes
<a href="result/newfolder/3">Result 3</a>, in a new folder.
  @@ -31,7 +31,7 @@
   	Test 7: <a href="test/7">Test 7</a>: the source:insert after test, inserts
a paragraph after the existing one in <a href="result/7">Result 7</a>.
     </para>
     <para>
  -	Test 8: <a href="test/8">Test 8</a>: source:insert before test, this test
attempts to insert a paragraph before existing ones using source:reinsert, <span class="failure">it
currently fails</span>, either because I am using it wrong or the code does not work
properly.
  +	Test 8: <a href="test/8">Test 8</a>: source:insert before test, this test
attempts to insert a paragraph before existing ones using source:reinsert.
     </para>
     <para>
   	Test 9: <a href="test/9">Test 9</a>: source:insert replace test, similar to
test 6, it updates the contents of a single tag, but this time it inserts, not overwrites.
  
  
  

----------------------------------------------------------------------
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