DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: What is the best way..?

  1. #1
    cihan Guest

    What is the best way..?


    What is the best way of embedding this XML into an HTML template? The number
    of <li> and <ul> is not known in advance and may vary from document to document.
    Is there any way if formatting the HTML page for the <li> and <ul> presented
    as they are presented in XML?
    I'd appreciate your help very much, since I m very new to XML stuff..

    this is the XML document;

    <?xml version="1.0" encoding="utf-8" ?>
    - <!-- Abdominal Applications
    -->
    - <course>
    <maintitle>Liver and Billiary System</maintitle>
    <subtitle>Anatomy</subtitle>
    - <intro>
    The liver is the largest organ in the adbdomen, measuring approximately
    15-17 cm. in length. It is located in the upper right quadrant of the abdomen,
    with the upper border at the level of the nipples and the lower border at
    the eighth or ninth rib. The liver is divided into three lobes:
    - <ul>
    <li>the right lobe</li>
    <li>the left lobe</li>
    <li>and the caudate lobe</li>
    </ul>
    The right lobe is the largest lobe - it is approximately six times larger
    than the left lobe. Additional landmarks include:
    - <ul>
    <li>the main lobar fissure, which extends from the gall bladder to the
    right portal vein;</li>
    <li>the ligamentum venosum, which separates the caudate and left lobes;</li>

    <li>and the falciform ligament and ligamentum teres, which separate the
    left lobe into medial and lateral portions.</li>
    </ul>
    </intro>
    </course

  2. #2
    Pat-Reek Guest

    Re: What is the best way..?


    Your xsl is going to determine how these tags are displayed; you have a very
    homogenous application with multiple pages that will repeat the same tags,
    and you want every page to have the same look and functionality, so one stylesheet
    should be all you need. What parser are you using?

    Patrick N.

    "cihan" <cihan.uslu@med.ge.com> wrote:
    >
    >What is the best way of embedding this XML into an HTML template? The number
    >of <li> and <ul> is not known in advance and may vary from document to document.
    >Is there any way if formatting the HTML page for the <li> and <ul> presented
    >as they are presented in XML?
    >I'd appreciate your help very much, since I m very new to XML stuff..
    >
    >this is the XML document;
    >
    ><?xml version="1.0" encoding="utf-8" ?>
    >- <!-- Abdominal Applications
    > -->
    >- <course>
    > <maintitle>Liver and Billiary System</maintitle>
    > <subtitle>Anatomy</subtitle>
    >- <intro>
    > The liver is the largest organ in the adbdomen, measuring approximately
    >15-17 cm. in length. It is located in the upper right quadrant of the abdomen,
    >with the upper border at the level of the nipples and the lower border at
    >the eighth or ninth rib. The liver is divided into three lobes:
    >- <ul>
    > <li>the right lobe</li>
    > <li>the left lobe</li>
    > <li>and the caudate lobe</li>
    > </ul>
    > The right lobe is the largest lobe - it is approximately six times larger
    >than the left lobe. Additional landmarks include:
    >- <ul>
    > <li>the main lobar fissure, which extends from the gall bladder to the
    >right portal vein;</li>
    > <li>the ligamentum venosum, which separates the caudate and left lobes;</li>
    >
    > <li>and the falciform ligament and ligamentum teres, which separate the
    >left lobe into medial and lateral portions.</li>
    > </ul>
    > </intro>
    > </course



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center