DESIGN  An XML Document To Store Information

DESIGN  An XML Document To Store Information

<——–patient.xml——->

 

<?xml version=”1.0″ encoding=”UTF-8″?>

<?xml-stylesheet type=”text/css” href=”patient.css”?>

<patients>

<patient>

<name>

NAME:

    <fname> ramesh </fname>

    <mname> kalpana</mname>

    <lname> basavaraaj</lname>

</name>

SSN:<ssn>12345</ssn>

AGE:<age>27</age>

ROOM:<room>123</room>

PRIMARY INSURANCE:<insurance type=”primary”>

id:<id>633134</id>

gn:<gn>633</gn>

address:<address>bijapur</address>

</insurance>

SECONDARY INSURANCE:<insurance type=”secondary”>

     id:<id>68564</id>

     gn:<gn>686</gn>

     address:<address>belgam</address>

</insurance>

MEDPROBLEM:<medproblem>high B.P </medproblem>

DRUGALLERGIE:<drugallergie> nil </drugallergie>

</patient>

<patient>

<name>

NAME:

     <fname>rahul</fname>

     <mname>mallappa</mname>

     <lname>devraj</lname>

</name>

SSN:<ssn>4567</ssn>

AGE:<age>26</age>

ROOM:<room>124</room>

PRIMARY INSURANCE:<insurance type=”primary”>

id:<id>4568</id>

gn:<gn>456</gn>

address:<address>belgum</address>

</insurance>

SECONDARY INSURANCE:<insurance type=”secondary”>

     id:<id>545456</id>

     gn:<gn>456</gn>

     address:<address>banglore</address>

</insurance>

MEDPROBLEM:<medproblem>low B.P </medproblem>

DRUGALLERGIE:<drugallergie> nil </drugallergie>

</patient>

<patient>

<name>

NAME:

     <fname>raj</fname>

     <mname>mukkesh</mname>

     <lname>das</lname>

</name>

SSN:<ssn>258</ssn>

AGE:<age>22</age>

ROOM:<room>125</room>

PRIMARY INSURANCE:<insurance type=”primary”>

id:<id>2589</id>

gn:<gn>258</gn>

address:<address>hasan</address>

</insurance>

SECONDARY INSURANCE:<insurance type=”secondary”>

     id:<id>545457</id>

     gn:<gn>457</gn>

     address:<address>banglore</address>

</insurance>

MEDPROBLEM:<medproblem>aids</medproblem>

DRUGALLERGIE:<drugallergie> nil </drugallergie>

</patient>

<patient>

<name>

NAME:

     <fname>manju</fname>

     <mname>madha</mname>

     <lname>rao</lname>

</name>

SSN:<ssn>25689</ssn>

AGE:<age>28</age>

ROOM:<room>126</room>

PRIMARY INSURANCE:<insurance type=”primary”>

id:<id>2559</id>

gn:<gn>255</gn>

address:<address>shikaaripura</address>

</insurance><br/>

SECONDARY INSURANCE:<insurance type=”secondary”>

     id:<id>625456</id>

     gn:<gn>625</gn>

     address:<address>bihar</address>

</insurance>

MEDPROBLEM:<medproblem>cancer</medproblem>

DRUGALLERGIE:<drugallergie> nil </drugallergie>

</patient>

</patients>

                         

<———patient.css———->

 patient

{

   display:block;

   margin_left:8%;

   border:solid green 20px;

   padding:4px;

}                                    

name

{

  display:block;

  color:red;

  font_family:script;

  font_weight:times new roman;

  font_size:30;

}

ssn

{

  display:block;

  font_size:12pt;

  margin_left:5%;

  font_family:arial;

  font_weight:blod;

  color:purple;

}

age

{

   display:block;

  font_size:12pt;

  margin_left:5%;

  font_family:arial;

  font_weight:blod;

  color:purple;

}

room

{

   display:block;

  font_size:12pt;

  margin_left:5%;

  font_family:arial;

  font_weight:blod;

  color:purple;

}

insurance

{

   display:block;

  font_size:12pt;

  margin_left:5%;

  font_family:arial;

  font_weight:blod;

  color:purple;

}

medproblem

{

   display:block;

  font_size:12pt;

  margin_left:5%;

  font_family:arial;

  font_weight:blod;

  color:purple;

}

drugallergie

{

   display:block;

  font_size:12pt;

  margin_left:5%;

  font_family:arial;

  font_weight:blod;

color:purple;

}

 

 

<———-hospitel.xml———->

 

<?xml version=”1.0″ encoding=”UTF-8″?>

<?xml-stylesheet type=”text/xsl” herf=”hospitel.xsl”?>

<patients>

<patient>

NAME:

         <name>

         <fname>ramesh</fname>

         <mname>kallappa</mname>

         <lname>basavaraj</lname>

         </name>

         SSN:<ssn>12345</ssn>

         AGE:<age>25</age>

         ROOM:<room>123</room>

         <insurance type=”primary”>

         ID:<id>633134</id>

         Group number:<gn>633</gn>

             Address:<address>bijapur</address>

             </insurance>

             Secondary Insurance:

             <insurance type=”secondary”>

             ID:<id>68564</id>

             Group number:<gn>686</gn>

             Address:<address>belagam</address>                               

             </insurance>

             Medproblem:<medproblem>high B.P</medproblem>

         Drugallergie:<drugallergie>nil</drugallergie>

</patient>

<patient>

NAME:

        <name>

            <fname>rahul</fname>

            <mname>mallappa</mname>

            </name><br/>

            SSN:

            <ssn>45676</ssn>

            AGE:

            <age>26</age>

            ROOM:

            <room>124</room>

            primary insurance:

            <insurance type=”primary”>

            ID:

            <id>4568</id>

            group number:

            <gn>456</gn>

            address:

            <address>belgam</address>

            </insurance>

            secondary insurance:

            <insurance type=”secondary”>

            ID:

            <id>545456</id>

            group number:

            <gn>545</gn>

            Address:

            <address>banglore</address>

            </insurance>

            Medproblem:

            <medproblem>low B.P</medproblem>

            Drugallergie:

            <drugallergie>nil</drugallergie>

</patient>

<patient>

NAME:

         <name>

         <fname>ramesh</fname>

         <mname>kallappa</mname>

         <lname>basavaraj</lname>

         </name>

         SSN:<ssn>12345</ssn>

         AGE:<age>25</age>

         ROOM:<room>123</room>

         <insurance type=”primary”>

         ID:<id>633134</id>

         Group number:<gn>633</gn>

             Address:<address>bijapur</address>

             </insurance>

             Secondary Insurance:

             <insurance type=”secondary”>

             ID:<id>68564</id>

             Group number:<gn>686</gn>

             Address:<address>belagam</address>

             </insurance>

             Medproblem:<medproblem>high B.P</medproblem>

         Drugallergie:<drugallergie>nil</drugallergie>

</patient>

</patients>

 

 

<———-hospitel.xsl———->

 

<xsl:stylesheet version=”1.0″ xmlns:xsl=”http://www.w3.org/1999/XSL/Transform”>

<xsl:template match=”/”>

<html>

<head>

</head>

<body>

<h2>patient information</h2>

<table border=”3″ cellpadding=”13″>

<tr bgcolor=”#9acd32″>

<th>SSN</th>

<th>Name</th>

<th>Age</th>

<th>Room</th>

</tr>

<xsl:for-each select=”patients/patient”>

<tr>

<td><xsl:value-of select=”ssn”/></td>

<td><xsl:value-of select=”name”/></td>

<td><xsl:value-of select=”age”/></td>

<td><xsl:value-of select=”room”/></td>

</tr>

</xsl:for-each>

</table>

</body>

</html>

</xsl:template>

</xsl:stylesheet>

256 total views, 1 views today

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by wp-copyrightpro.com