untitled
246 10 Transforming with Traditional Programming Languages print("<HealthStudy>\n"); while (<>) { $month = substr($_ ...
10.2 Transforming XML 247 2000-1-15 18.66 normal 62 46.27 2000-1-15 26.93 overweight 63 68.95 2000-2-1 33.95 obese 65 92.5 ...
248 10 Transforming with Traditional Programming Languages print("<HealthStudy>\n"); while (<>) { $month = substr($_ ...
10.2 Transforming XML 249 print("\n"); while (<>) { chomp; split(/:/); print(" $_[1]\n"); } print("\n"); Program 10.20 Con ...
250 10 Transforming with Traditional Programming Languages use Template; while (<>) { chomp; split(/:/); $name = $_[0]; $c ...
10.2 Transforming XML 251 use Template; while (<>) { $interviews[$i]{month} = substr($, 0, 2) + 0; $interviews[$i]{day} = ...
252 10 Transforming with Traditional Programming Languages Selection of a part of a data structure is specified in Perl using b ...
10.2 Transforming XML 253 use Template; while (<>) { chomp; if (/Motif #([0-9]+):/) { $label = $1; $i = 0; } elsif ($label ...
254 10 Transforming with Traditional Programming Languages <MotifData> [% FOREACH label IN MotifData.keys.sort %] <Moti ...
10.2 Transforming XML 255 use XML::Parser; $p = new XML::Parser(Handlers => { Start => \&start }); print("\n"); $p-> ...
256 10 Transforming with Traditional Programming Languages <HealthStudyUS> <Interview Date=’2000-1-15’ Weight=’101.794’ ...
10.2 Transforming XML 257 use XML::Parser; $p = new XML::Parser(Handlers => { Start => \&start, End => \&end, C ...
258 10 Transforming with Traditional Programming Languages use XML::Parser; $p = new XML::Parser(Handlers => { Start => \& ...
10.3 Exercises 259 parsing styles can help simplify the program, but all of them have disadvan- tages. A better approach that ha ...
260 10 Transforming with Traditional Programming Languages For the health study database in section 1.1, the subject identifier ...
11 The XML Transformation Language The XML Transformation Language (XSLT) (W3C 2001d) is one of the most popular, as well as the ...
262 11 The XML Transformation Language <Array> <Protein id="Mas375"> <interaction substrate="Sub89032"> <Bi ...
11.1 Transformation as Digestion 263 <?xml version="1.0"?> <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/19 ...
264 11 The XML Transformation Language Figure 11.2 Abstract depiction of the process of digestion. The original chain is shown i ...
11.2 Programming in XSLT 265 Figure 11.3 The digestion process during XML transformation. The first template digests achromosome ...
«
9
10
11
12
13
14
15
16
17
18
»
Free download pdf