Changeset 3069:c16571fa96f4 in livinglogic.python.xist

Show
Ignore:
Timestamp:
12/19/07 20:22:41 (12 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Start documenting what has to be done to migration to 3.0. Fix tag nesting.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • MIGRATION.xml

    r2595 r3069  
    11<?xml version='1.0' encoding='iso-8859-1'?> 
     2<section><title>Migrating to version 3.0</title> 
     3 
     4<section><title>Changes to tree traversal</title> 
     5<par>You can no longer apply XFind expression directly to nodes, so instead of:</par> 
     6<prog> 
     7for node in root//html.p: 
     8    print node 
     9</prog> 
     10<par>you have to write:</par> 
     11<prog> 
     12for node in root.walknode(html.p): 
     13    print node 
     14</prog> 
     15<par>If you want the search anchored at the root node, you can do the following:</par> 
     16<prog> 
     17for node in root.walknode(root/html.p): 
     18    print node 
     19</prog> 
     20<par>This will yield <class>html.p</class> elements only if they are immediate 
     21children of the <lit>root</lit> node.</par> 
     22 
     23<par>Many of the XFind operators have been renamed (and all have been rewritten). 
     24See the <module>xfind</module> documentation for more info.</par> 
     25 
     26</section> 
     27 
     28</section> 
     29 
     30 
    231<section><title>Migrating to version 2.15</title> 
    332 
     
    2554<lit>color</lit> and a &css; padding of a different color: This will no longer 
    2655work).</par> 
     56 
     57</section> 
    2758 
    2859</section> 
     
    104135</section> 
    105136 
    106  
    107137<section><title>Changes to the <module>xfind</module> module</title> 
    108138 
     
    111141<function>iterone</function> as well as the class <class>Iterator</class> 
    112142have been moved to the <module>ll</module> module.</par> 
     143 
     144</section> 
    113145 
    114146</section>