/[cvs]/nfo/perl/scripts/xupdate/t/08_xupdate_variables.xml
ViewVC logotype

Diff of /nfo/perl/scripts/xupdate/t/08_xupdate_variables.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by joko, Wed May 7 04:08:49 2003 UTC revision 1.2 by joko, Wed May 7 13:23:45 2003 UTC
# Line 1  Line 1 
1  <?xml version="1.0"?>  <?xml version="1.0"?>
2    
3  <!-- from http://www.xmldb.org/xupdate/xupdate-wd.html#N3c9217 -->  <!-- modified version of http://www.xmldb.org/xupdate/xupdate-wd.html#N3c9217 -->
4    
5  <xupdate:modifications version="1.0" xmlns:xupdate="http://www.xmldb.org/xupdate">  <xupdate:modifications version="1.0" xmlns:xupdate="http://www.xmldb.org/xupdate">
6    
7    <!-- <xupdate:variable name="town" select="/addresses/address[0]/town"/> -->    <!-- that's from the spec -->
8      <!-- <xupdate:variable name="town" select="/addresses/address[0]/town"/> -->
9      
10      <!-- testing -->
11    <!-- <xupdate:variable name="town" select="/addresses[2]/address[4]/town[2]" /> -->    <!-- <xupdate:variable name="town" select="/addresses[2]/address[4]/town[2]" /> -->
12    <xupdate:variable name="town" select="abcdef" />    <!-- <xupdate:variable name="town" select="abcdef" /> -->
13      
14      <!-- this works -->
15      <xupdate:variable name="town" select="/addresses/address[1]/town" />
16      
17      <!-- this should also - though not required (feature) -->
18      <!-- <xupdate:variable name="town">Hello World!</xupdate:variable> -->
19    
20    <xupdate:append select="/addresses">    <xupdate:append select="/addresses">
21     <xupdate:element name="address">     <xupdate:element name="address">
22       <xupdate:value-of select="{$town}"/>       <xupdate:value-of select="$town"/>
23     </xupdate:element>     </xupdate:element>
24    </xupdate:append>    </xupdate:append>
25    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed