473,385 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Adding image in XSLT with images in image folder at same level as .xsl

I need to add a portrait of each president from the 21st century only. The images are saved in an images folder on the same level as the .xsl file. I need to add the images through the XSL file and cannot add anything to the XML file. Can you please help?

Here is what I was trying to do:
If the president number = 44 then show image 44.png located at: images/44.png.

XSL file:
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <xsl:stylesheet version="2.0" 
  4.                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
  5.                 xmlns:fn="http://www.w3.org/2005/xpath-functions" >
  6.  
  7.     <xsl:output method="xhtml" 
  8.                 indent="yes"
  9.                 omit-xml-declaration="yes" />
  10.  
  11.     <xsl:template match="/">
  12.         <html>
  13.         <head>
  14.         <title>Table of US Presidents</title>
  15.         <link rel="stylesheet" type="text/css" href="president_21c.css" />
  16.         </head>
  17.         <body>
  18.         <h1>Table of US Presidents</h1>
  19.  
  20.         <xsl:apply-templates select="presidents" />
  21.  
  22.         </body>
  23.         </html>
  24.     </xsl:template>
  25.  
  26.     <xsl:template match="presidents">
  27.         <table>
  28.         <tr>
  29.         <th>Name</th>
  30.         <th>Birthday</th>
  31.         <th>Took Office</th>
  32.         <th>Left Office</th>
  33.         <th>Party</th>
  34.         <th>Portrait</th>
  35.         </tr>
  36.             <xsl:apply-templates select="president" />
  37.         </table>
  38.     </xsl:template>
  39.  
  40.     <xsl:template match="president">
  41.         <tr>
  42.             <xsl:apply-templates select="name" />
  43.             <xsl:apply-templates select="birthday" />
  44.             <xsl:apply-templates select="took_office" />
  45.             <xsl:apply-templates select="left_office" />
  46.             <xsl:apply-templates select="party" />
  47.             <xsl:apply-templates select="portrait" />
  48.         </tr>
  49.     </xsl:template>
  50.  
  51.     <xsl:template match="name">
  52.         <td class="nameStyle">
  53.             <xsl:value-of select="." />
  54.         </td>
  55.     </xsl:template>
  56.  
  57.     <xsl:template match="birthday">
  58.         <td class="birthdayStyle">
  59.             <xsl:value-of select="." />
  60.         </td>
  61.     </xsl:template>
  62.  
  63.     <xsl:template match="took_office">
  64.         <td class="took_officeStyle">
  65.                 <xsl:value-of select="." />
  66.         </td>
  67.     </xsl:template>
  68.  
  69.     <xsl:template match="left_office">
  70.         <td class="left_officeStyle">
  71.                 <xsl:value-of select="." />
  72.         </td>
  73.     </xsl:template>
  74.  
  75.     <xsl:template match="party">
  76.             <xsl:choose>
  77.                 <xsl:when test=".='Federalist'">
  78.                 <td class="federalistParty">
  79.                 <xsl:value-of select="." />
  80.                 </td>
  81.                 </xsl:when>
  82.  
  83.                 <xsl:when test=".='Democratic-Republican'">
  84.                 <td class="democrateRepublicanParty">
  85.                 <xsl:value-of select="." />
  86.                 </td>
  87.                 </xsl:when>
  88.  
  89.                 <xsl:when test=".='Democratic'">
  90.                 <td class="democraticParty">
  91.                 <xsl:value-of select="." />
  92.                 </td>
  93.                 </xsl:when>
  94.  
  95.                 <xsl:when test=".='Whig'">
  96.                 <td class="whigParty">
  97.                 <xsl:value-of select="." />
  98.                 </td>
  99.                 </xsl:when>
  100.  
  101.                 <xsl:when test=".='Republican'">
  102.                 <td class="republicanParty">
  103.                 <xsl:value-of select="." />
  104.                 </td>
  105.                 </xsl:when>
  106.  
  107.                 <xsl:otherwise>
  108.                 <td>
  109.                 <xsl:value-of select="." />
  110.                 </td>
  111.                 </xsl:otherwise>
  112.             </xsl:choose>
  113.  
  114.     </xsl:template>
  115.  
  116.     <xsl:template match="portrait">
  117.         <td class="portrait">
  118.             <xsl:if test="'../president/number' = 44">
  119.                 <img src="http://bytes.com/topic/xml/answers/topic/xml/answers/{../images/44.png}" alt="Barack Obama Portrait" class="portraitStyle"/>
  120.             </xsl:if>
  121.         </td>
  122.     </xsl:template>
  123.  
  124.  
  125. </xsl:stylesheet>
  126.  
XML file:
Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <!-- Information about US Presidents -->
  4. <?xml-stylesheet type="text/xsl" href="president_21c.xsl" ?>
  5.  
  6. <presidents date="2012-08-18" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="president.xsd">
  7.  
  8.     <president>
  9.         <number>1</number>
  10.         <name>George Washington</name>
  11.         <birthday>1732-02-22</birthday>
  12.         <took_office>1789-04-30</took_office>
  13.         <left_office>1797-03-04</left_office>
  14.         <party>no party</party>
  15.         <term>
  16.             <number>1</number>
  17.             <vice_president>John Adams</vice_president> 
  18.         </term>
  19.         <term>
  20.             <number>2</number>
  21.             <vice_president>John Adams</vice_president>
  22.         </term>
  23.     </president>
  24.  
  25.     <president>
  26.         <number>2</number>
  27.         <name>John Adams</name>
  28.         <birthday>1735-10-30</birthday>
  29.         <took_office>1797-03-04</took_office>
  30.         <left_office>1801-03-04</left_office>
  31.         <party>Federalist</party>
  32.         <term>
  33.             <number>3</number>
  34.             <vice_president>Thomas Jefferson</vice_president>
  35.         </term>
  36.     </president>
  37.  
  38.     <president>
  39.         <number>3</number>
  40.         <name>Thomas Jefferson</name>
  41.         <birthday>1743-04-13</birthday>
  42.         <took_office>1801-03-04</took_office>
  43.         <left_office>1809-03-04</left_office>
  44.         <party>Democratic-Republican</party>
  45.         <term>
  46.             <number>4</number>
  47.             <vice_president>Aaron Burr</vice_president>
  48.         </term>
  49.         <term>
  50.             <number>5</number>
  51.             <vice_president>George Clinton</vice_president>
  52.         </term>
  53.     </president>
  54.  
  55.     <president>
  56.         <number>4</number>
  57.         <name>James Madison</name>
  58.         <birthday>1751-03-16</birthday>
  59.         <took_office>1809-03-04</took_office>
  60.         <left_office>1817-03-04</left_office>
  61.         <party>Democratic-Republican</party>
  62.         <term>
  63.             <number>6</number>
  64.             <vice_president>George Clinton</vice_president>
  65.         </term>
  66.         <term>
  67.             <number>7</number>
  68.             <vice_president>Elbridge Gerry</vice_president>
  69.         </term>
  70.     </president>
  71.  
  72.     <president>
  73.         <number>5</number>
  74.         <name>James Monroe</name>
  75.         <birthday>1758-04-28</birthday>
  76.         <took_office>1817-03-04</took_office>
  77.         <left_office>1825-03-04</left_office>
  78.         <party>Democratic-Republican</party>
  79.         <term>
  80.             <number>8</number>
  81.             <vice_president>Daniel D. Tompkins</vice_president>
  82.         </term>
  83.         <term>
  84.             <number>9</number>
  85.             <vice_president>Daniel D. Tompkins</vice_president>
  86.         </term>
  87.     </president>
  88.  
  89.     <president>
  90.         <number>6</number>
  91.         <name>John Quincy Adams</name>
  92.         <birthday>1767-07-11</birthday>
  93.         <took_office>1825-03-04</took_office>
  94.         <left_office>1829-03-04</left_office>
  95.         <party>Democratic-Republican</party>
  96.         <term>
  97.             <number>10</number>
  98.             <vice_president>John C. Calhoun</vice_president>
  99.         </term>
  100.     </president>
  101.  
  102.     <president>
  103.         <number>7</number>
  104.         <name>Andrew Jackson</name>
  105.         <birthday>1767-03-15</birthday>
  106.         <took_office>1829-03-04</took_office>
  107.         <left_office>1837-03-04</left_office>
  108.         <party>Democratic</party>
  109.         <term>
  110.             <number>11</number>
  111.             <vice_president>John C. Calhoun</vice_president>
  112.         </term>
  113.         <term>
  114.             <number>12</number>
  115.         <vice_president>Martin Van Buren</vice_president>
  116.         </term>
  117.     </president>
  118.  
  119.     <president>
  120.         <number>8</number>
  121.         <name>Martin Van Buren</name>
  122.         <birthday>1782-12-05</birthday>
  123.         <took_office>1837-03-04</took_office>
  124.         <left_office>1841-03-04</left_office>
  125.         <party>Democratic</party>
  126.         <term>
  127.             <number>13</number>
  128.             <vice_president>Richard Mentor Johnson</vice_president>
  129.         </term>
  130.     </president>
  131.  
  132.     <president>
  133.         <number>9</number>
  134.         <name>William Henry Harrison</name>
  135.         <birthday>1773-02-09</birthday>
  136.         <took_office>1841-03-04</took_office>
  137.         <left_office>1841-04-04</left_office>
  138.         <!-- Looked up Presidents political party and added info to XML to match DTD requirements. Information from: http://www.history.com/topics/us-presidents/william-henry-harrison -->
  139.         <party>Whig</party>
  140.         <term>
  141.             <number>14</number>
  142.             <vice_president>John Tyler</vice_president>
  143.         </term>
  144.     </president>
  145.  
  146.     <president>
  147.         <number>10</number>
  148.         <name>John Tyler</name>       
  149.         <birthday>1790-03-29</birthday>
  150.         <took_office>1841-04-04</took_office>
  151.         <left_office>1845-03-04</left_office>
  152.         <party>Whig</party>
  153.         <term>
  154.             <number>14</number>
  155.             <vice_president>None</vice_president>
  156.         </term>
  157.     </president>
  158.  
  159.     <president>
  160.         <number>11</number>
  161.         <name>James K. Polk</name>
  162.         <birthday>1795-11-02</birthday>
  163.         <took_office>1845-03-04</took_office>
  164.         <left_office>1849-03-04</left_office>
  165.         <party>Democratic</party>
  166.         <term>
  167.             <number>15</number>
  168.             <vice_president>George M. Dallas</vice_president>
  169.         </term>
  170.     </president>
  171.  
  172.     <president>
  173.         <number>12</number>
  174.         <name>Zachary Taylor</name>
  175.         <birthday>1784-11-24</birthday>
  176.         <took_office>1849-03-04</took_office>
  177.         <left_office>1850-07-09</left_office>
  178.         <party>Whig</party>
  179.         <term>
  180.             <number>16</number>
  181.             <vice_president>Millard Fillmore</vice_president>
  182.         </term>
  183.     </president>
  184.  
  185.     <president>
  186.         <number>13</number>
  187.         <name>Millard Fillmore</name>
  188.         <birthday>1800-01-07</birthday>
  189.         <took_office>1850-07-09</took_office>
  190.         <left_office>1853-03-04</left_office>
  191.         <party>Whig</party>
  192.         <term>
  193.             <number>16</number>
  194.             <vice_president>None</vice_president>
  195.         </term>
  196.     </president>
  197.  
  198.     <president>
  199.         <number>14</number>
  200.         <name>Franklin Pierce</name>
  201.         <birthday>1804-11-23</birthday>
  202.         <took_office>1853-03-04</took_office>
  203.         <left_office>1857-03-04</left_office>
  204.         <party>Democratic</party>
  205.         <term>
  206.             <number>17</number>
  207.             <vice_president>William R. King</vice_president>
  208.         </term>
  209.     </president>
  210.  
  211.     <president>
  212.         <number>15</number>
  213.         <name>James Buchanan</name>
  214.         <birthday>1791-04-23</birthday>
  215.         <took_office>1857-03-04</took_office>
  216.         <left_office>1861-03-04</left_office>
  217.         <party>Democratic</party>
  218.         <term>
  219.             <number>18</number>
  220.             <vice_president>John C. Breckinridge</vice_president>
  221.         </term>
  222.     </president>
  223.  
  224.     <president>
  225.         <number>16</number>
  226.         <name>Abraham Lincoln</name>
  227.         <birthday>1809-02-12</birthday>
  228.         <took_office>1861-03-04</took_office>
  229.         <left_office>1865-04-15</left_office>
  230.         <party>Republican</party>
  231.         <term>
  232.             <number>19</number>
  233.             <vice_president>Hannibal Hamlin</vice_president>
  234.         </term>
  235.         <term>
  236.             <number>20</number>
  237.             <vice_president>Andrew Johnson</vice_president>
  238.         </term>
  239.     </president>
  240.  
  241.     <president>
  242.         <number>17</number>
  243.         <name>Andrew Johnson</name>
  244.         <birthday>1808-12-29</birthday>
  245.         <took_office>1865-04-15</took_office>
  246.         <left_office>1869-03-04</left_office>
  247.         <party>Democratic</party>
  248.         <term>
  249.             <number>20</number>
  250.             <vice_president>None</vice_president>
  251.         </term>
  252.     </president>
  253.  
  254.     <president>
  255.         <number>18</number>
  256.         <name>Ulysses S. Grant</name>
  257.         <birthday>1822-04-27</birthday>
  258.         <took_office>1869-03-04</took_office>
  259.         <left_office>1877-03-04</left_office>
  260.         <party>Republican</party>
  261.         <term>
  262.             <number>21</number>
  263.             <vice_president>Schuyler Colfax</vice_president>
  264.         </term>
  265.         <term>
  266.             <number>22</number>
  267.             <vice_president>Henry Wilson</vice_president>
  268.         </term>
  269.     </president>
  270.  
  271.     <president>
  272.         <number>19</number>
  273.         <name>Rutherford B. Hayes</name>
  274.         <birthday>1822-10-04</birthday>
  275.         <took_office>1877-03-04</took_office>
  276.         <left_office>1881-03-04</left_office>
  277.         <party>Republican</party>
  278.         <term>
  279.             <number>23</number>
  280.             <vice_president>William A. Wheeler</vice_president>
  281.         </term>
  282.     </president>
  283.  
  284.     <president>
  285.         <number>20</number>
  286.         <name>James A. Garfield</name>
  287.         <birthday>1831-11-19</birthday>
  288.         <took_office>1881-03-04</took_office>
  289.         <left_office>1881-09-19</left_office>
  290.         <party>Republican</party>
  291.         <term>
  292.             <number>24</number>
  293.             <vice_president>Chester A. Arthur</vice_president>
  294.         </term>
  295.     </president>
  296.  
  297.     <president>
  298.         <number>21</number>
  299.         <name>Chester A. Arthur</name>
  300.         <birthday>1830-10-05</birthday>
  301.         <took_office>1881-09-19</took_office>
  302.         <left_office>1885-03-04</left_office>
  303.         <party>Republican</party>
  304.         <term>
  305.             <number>24</number>
  306.             <vice_president>None</vice_president>
  307.         </term>
  308.     </president>
  309.  
  310.     <president>
  311.         <number>22</number>
  312.         <name>Grover Cleveland</name>
  313.         <birthday>1837-03-18</birthday>
  314.         <took_office>1885-03-04</took_office>
  315.         <left_office>1889-03-04</left_office>
  316.         <party>Democratic</party>
  317.         <term>
  318.             <number>25</number>
  319.             <vice_president>Thomas A. Hendricks</vice_president>
  320.         </term>
  321.     </president>
  322.  
  323.     <president>
  324.         <number>23</number>
  325.         <name>Benjamin Harrison</name>
  326.         <birthday>1833-08-20</birthday>
  327.         <took_office>1889-03-04</took_office>
  328.         <left_office>1893-03-04</left_office>
  329.         <party>Republican</party>
  330.         <term>
  331.             <number>26</number>
  332.             <vice_president>Levi P. Morton</vice_president>
  333.         </term>
  334.     </president>
  335.  
  336.     <president>
  337.         <number>24</number>
  338.         <name>Grover Cleveland</name>
  339.         <birthday>1837-03-18</birthday>
  340.         <took_office>1893-03-04</took_office>
  341.         <left_office>1897-03-04</left_office>
  342.         <party>Democratic</party>
  343.         <term>
  344.             <number>27</number>
  345.             <vice_president>Adlai Stevenson I</vice_president>
  346.         </term>
  347.     </president>
  348.  
  349.     <president>
  350.         <number>25</number>
  351.         <name>William McKinley</name>
  352.         <birthday>1843-01-29</birthday>
  353.         <took_office>1897-03-04</took_office>
  354.         <left_office>1901-09-14</left_office>
  355.         <party>Republican</party>
  356.         <term>
  357.             <number>28</number>
  358.             <vice_president>Garret Hobart</vice_president>
  359.         </term>
  360.         <term>
  361.             <number>29</number>
  362.             <vice_president>Theodore Roosevelt</vice_president>
  363.         </term>
  364.     </president>
  365.  
  366.     <president>
  367.         <number>26</number>
  368.         <name>Theodore Roosevelt</name>
  369.         <birthday>1858-10-27</birthday>
  370.         <took_office>1901-09-14</took_office>
  371.         <left_office>1909-03-04</left_office>
  372.         <party>Republican</party>
  373.         <term>
  374.             <number>29</number>
  375.             <vice_president>None</vice_president>
  376.         </term>
  377.         <term>
  378.             <number>30</number>
  379.             <vice_president>Charles W. Fairbanks</vice_president>
  380.         </term>
  381.     </president>
  382.  
  383.     <president>
  384.         <number>27</number>
  385.         <name>William Howard Taft</name>
  386.         <birthday>1857-09-15</birthday>
  387.         <took_office>1909-03-04</took_office>
  388.         <left_office>1913-03-04</left_office>
  389.         <party>Republican</party>
  390.         <term>
  391.             <number>31</number>
  392.             <vice_president>James S. Sherman</vice_president>
  393.         </term>
  394.     </president>
  395.  
  396.     <president>
  397.         <number>28</number>
  398.         <name>Woodrow Wilson</name>
  399.         <birthday>1856-12-28</birthday>
  400.         <took_office>1913-03-04</took_office>
  401.         <left_office>1921-03-04</left_office>
  402.         <party>Democratic</party>
  403.         <term>
  404.             <number>32</number>
  405.             <vice_president>Thomas R. Marshall</vice_president>
  406.         </term>
  407.     </president>
  408.  
  409.     <president>
  410.         <number>29</number>
  411.         <name>Warren G. Harding</name>
  412.         <birthday>1865-11-02</birthday>
  413.         <took_office>1921-03-04</took_office>
  414.         <left_office>1923-08-02</left_office>
  415.         <party>Republican</party>
  416.         <term>
  417.             <number>34</number>
  418.             <vice_president>Calvin Coolidge</vice_president>
  419.         </term>
  420.     </president>
  421.  
  422.     <president>
  423.         <number>30</number>
  424.         <name>Calvin Coolidge</name>
  425.         <birthday>1872-07-04</birthday>
  426.         <took_office>1923-08-02</took_office>
  427.         <left_office>1929-03-04</left_office>
  428.         <party>Republican</party>
  429.         <term>
  430.             <number>35</number>
  431.             <vice_president>Charles G. Dawes</vice_president>
  432.         </term>
  433.     </president>
  434.  
  435.     <president>
  436.         <number>31</number>
  437.         <name>Herbert Hoover</name>
  438.         <birthday>1874-08-10</birthday>
  439.         <took_office>1929-03-04</took_office>
  440.         <left_office>1933-03-04</left_office>
  441.         <party>Republican</party>
  442.         <term>
  443.             <number>36</number>
  444.             <vice_president>Charles Curtis</vice_president>
  445.         </term>
  446.     </president>
  447.  
  448.     <president>
  449.         <number>32</number>
  450.         <name>Franklin D. Roosevelt</name>
  451.         <birthday>1882-01-30</birthday>
  452.         <took_office>1933-03-04</took_office>
  453.         <left_office>1945-04-12</left_office>
  454.         <party>Democratic</party>
  455.         <term>
  456.             <number>37</number>
  457.             <vice_president>John Nance Gardner</vice_president>
  458.         </term>
  459.         <term>
  460.             <number>38</number>
  461.             <vice_president>John Nance Gardner</vice_president>
  462.         </term>
  463.         <term>
  464.             <number>39</number>
  465.             <vice_president>Henry A. Wallace</vice_president>
  466.         </term>
  467.         <term>
  468.             <number>40</number>
  469.             <vice_president>Harry S. Truman</vice_president>
  470.         </term>
  471.     </president>
  472.  
  473.     <president>
  474.         <number>33</number>
  475.         <name>Harry S. Truman</name>
  476.         <birthday>1884-05-08</birthday>
  477.         <took_office>1945-04-12</took_office>
  478.         <left_office>1953-01-20</left_office>
  479.         <party>Democratic</party>
  480.         <term>
  481.             <number>40</number>
  482.             <vice_president>None</vice_president>
  483.         </term>
  484.         <term>
  485.             <number>41</number>
  486.             <vice_president>Alben W. Barkley</vice_president>
  487.         </term>
  488.     </president>
  489.  
  490.     <president>
  491.         <number>34</number>
  492.         <name>Dwight D. Eisenhower</name>
  493.         <birthday>1890-10-14</birthday>
  494.         <took_office>1953-01-20</took_office>
  495.         <left_office>1961-01-20</left_office>
  496.         <party>Republican</party>
  497.         <term>
  498.             <number>42</number>
  499.             <vice_president>Richard Nixon</vice_president>
  500.         </term>
  501.         <term>
  502.             <number>43</number>
  503.             <vice_president>Richard Nixon</vice_president>
  504.         </term>
  505.     </president>
  506.  
  507.     <president>
  508.         <number>35</number>
  509.         <name>John F. Kennedy</name>
  510.         <birthday>1917-05-29</birthday>
  511.         <took_office>1961-01-20</took_office>
  512.         <left_office>1963-11-22</left_office>
  513.         <party>Democratic</party>
  514.         <term>
  515.             <number>44</number>
  516.             <vice_president>Lyndon B. Johnson</vice_president>
  517.         </term>
  518.     </president>
  519.  
  520.     <president>
  521.         <number>36</number>
  522.         <name>Lyndon B. Johnson</name>
  523.         <birthday>1908-08-27</birthday>
  524.         <took_office>1963-11-22</took_office>
  525.         <left_office>1969-01-20</left_office>
  526.         <party>Democratic</party>
  527.         <term>
  528.             <number>44</number>
  529.             <vice_president>None</vice_president>
  530.         </term>
  531.         <term>
  532.             <number>45</number>
  533.             <vice_president>Hubert Humphrey</vice_president>
  534.         </term>
  535.     </president>
  536.  
  537.     <president>
  538.         <number>37</number>
  539.         <name>Richard Nixon</name>
  540.         <birthday>1913-01-09</birthday>
  541.         <took_office>1969-01-20</took_office>
  542.         <left_office>1974-08-09</left_office>
  543.         <party>Republican</party>
  544.         <term>
  545.             <number>46</number>
  546.             <vice_president>Spiro Agnew</vice_president>
  547.         </term>
  548.         <term>
  549.             <number>47</number>
  550.             <vice_president>Gerald Ford</vice_president>
  551.         </term>
  552.     </president>
  553.  
  554.     <president>
  555.         <number>38</number>
  556.         <name>Gerald Ford</name>
  557.         <birthday>1913-07-14</birthday>
  558.         <took_office>1974-08-09</took_office>
  559.         <left_office>1977-01-20</left_office>
  560.         <party>Republican</party>
  561.         <term>
  562.             <number>47</number>
  563.             <vice_president>Nelson Rockefeller</vice_president>
  564.         </term>
  565.     </president>
  566.  
  567.     <president>
  568.         <number>39</number>
  569.         <name>Jimmy Carter</name>
  570.         <birthday>1924-10-01</birthday>
  571.         <took_office>1977-01-20</took_office>
  572.         <left_office>1981-01-20</left_office>
  573.         <party>Democratic</party>
  574.         <term>
  575.             <number>48</number>
  576.             <vice_president>Walter Mondale</vice_president>
  577.         </term>
  578.     </president>
  579.  
  580.     <president>
  581.         <number>40</number>
  582.         <name>Ronald Reagan</name>
  583.         <birthday>1911-02-06</birthday>
  584.         <took_office>1981-01-20</took_office>
  585.         <left_office>1989-01-20</left_office>
  586.         <party>Republican</party>
  587.         <term>
  588.             <number>49</number>
  589.             <vice_president>George H. W. Bush</vice_president>
  590.         </term>
  591.         <term>
  592.             <number>50</number>
  593.             <vice_president>George H. W. Bush</vice_president>
  594.         </term>
  595.     </president>
  596.  
  597.     <president>
  598.         <number>41</number>
  599.         <name>George H. W. Bush</name>
  600.         <birthday>1924-06-12</birthday>
  601.         <took_office>1989-01-20</took_office>
  602.         <left_office>1993-01-20</left_office>
  603.         <party>Republican</party>
  604.         <term>
  605.             <number>51</number>
  606.             <vice_president>Dan Quayle</vice_president>
  607.         </term>
  608.     </president>
  609.  
  610.     <president>
  611.         <number>42</number>
  612.         <name>Bill Clinton</name>
  613.         <birthday>1946-08-19</birthday>
  614.         <took_office>1993-01-20</took_office>
  615.         <left_office>2001-01-20</left_office>
  616.         <party>Democratic</party>
  617.         <term>
  618.             <number>52</number>
  619.             <vice_president>Al Gore</vice_president>
  620.         </term>
  621.         <term>
  622.             <number>53</number>
  623.             <vice_president>Al Gore</vice_president>
  624.         </term>
  625.     </president>
  626.  
  627.     <president>
  628.         <number>43</number>
  629.         <name>George W. Bush</name>
  630.         <birthday>1946-07-06</birthday>
  631.         <took_office>2001-01-20</took_office>
  632.         <left_office>2009-01-20</left_office>
  633.         <party>Republican</party>
  634.         <term>
  635.             <number>54</number>
  636.             <vice_president>Dick Cheney</vice_president>
  637.         </term>
  638.         <term>
  639.             <number>55</number>
  640.             <vice_president>Dick Cheney</vice_president>
  641.         </term>
  642.     </president>
  643.  
  644.     <president>
  645.         <number>44</number>
  646.         <name>Barack Obama</name>
  647.         <birthday>1961-08-04</birthday>
  648.         <took_office>2009-01-20</took_office>
  649.         <left_office>Incumbent</left_office>
  650.         <party>Democratic</party>
  651.         <term>
  652.             <number>56</number>
  653.             <vice_president>Joe Biden</vice_president>
  654.         </term>
  655.     </president>
  656. </presidents>
  657.  
Oct 11 '14 #1
1 3883
Any help is greatly appreciated.
Oct 11 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Laszlo Zsolt Nagy | last post by:
I would like to load image from a directory right into an image list. I wrote a simple library that loads the images in the directory and resizes them as needed before adding to the wx.ImageList....
1
by: Lucanus | last post by:
Hi All, Just a quick question, which should have a simple answer... Can I have a document with three images with the same name, and reference those images individually. ie: <img...
2
by: Robson Carvalho Machado | last post by:
Dear Friends, Does anybody knows how to use the below code with an image stored at SQL Image field? Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
6
by: Suraj Joneja | last post by:
Hi All, I've an image control on my ASP.net page. This displays an image named 'Logo.jpg' in the location '~\Images'. Another application can change this image. It can select any image and...
3
by: David Veeneman | last post by:
I'm trying to set images in a bound DataGridView image column. My enum has three possible values, and I have an image that I want to show for each value: EnumValue.OK --GreenLight.gif...
3
by: Sandeep Singh Sekhon | last post by:
I am developing an application in ASP.NET 1.1. on one page I allow the user to upload and delete the files to the server. When I delete the file, I physically delete the file from the location....
1
by: Ted Ngo | last post by:
Hi All, I try to create a login screen using mode="Forms" Web Config: <authentication mode="Forms"> <forms name=".ASPXAUTH" loginUrl="Login.aspx" protection="All" timeout="30" path="/"
2
by: senfo | last post by:
I'm using an ImageList component in conjunction with a ListView control to display images and it appears as though it's only possible set the size of an image globally, for the entire list. Is...
2
by: =?Utf-8?B?UmludSBHb3BhbGFrcmlzaG5hIFBpbGxhaQ==?= | last post by:
Hi, I have a C# Web application , in which I need to show tiff image in an image control.The image loading is from a bitmap object and not from a file. Please advise me .... Thanks and...
3
by: inungh | last post by:
I have a image control on the design form. I set image url. The image control only show image when I put the image in the same directory. Are there any place I can check? Your help is great...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.