Page 177 - E-Bussiness and E-Commerce Management Strategy, Implementation, and Practice
P. 177
M03_CHAF9601_04_SE_C03.QXD:D01_CHAF7409_04_SE_C01.QXD 16/4/09 11:09 Page 144
144 Part 1 Introduction
<ProductID>118003-008</ProductID>
</Product>
<Product Type5"Good" SchemaCategoryRef5"C43171801">
<ProductID>140141-002</ProductID>
<UOM><UOMCoded>EA</UOMCoded></UOM>
<Manufacturer>Compaq</Manufacturer>
<LeadTime>2</LeadTime>
<CountryOfOrigin>
<Country><CountryCoded>US</CountryCoded></Country>
</CountryOfOrigin>
<ShortDescription xml:lang5"en">Armada M700 PIII 500
12GB</ShortDescription>
<LongDescription xml:lang5"en">
This light, thin powerhouse delivers no-compromise performance
in a sub-five pound form factor. Size and Weight(HxWxD): 12.4 X
9.8 X 1.1 in 4.3 – 4.9 lbs (depending on configuration) Proces-
sor: 500-MHZ Intel Pentium III Processor with 256K integrated
cache Memory: 128MB of RAM, expandable to 576MB Hard Drive:
12.0GB Removable SMART Hard Drive Display Graphics: 14.1-inch
color TFT with 1024 x 768 resolution (up to 16M colors internal)
Communication: Mini-PCI V.90 Modem/Nic Combo Operating System:
Dual Installation of Microsoft Windows 95 & Microsoft
Windows 98
</LongDescription>
<ProductAttachment>
<AttachmentURL>file:\5931.jpg</AttachmentURL>
<AttachmentPurpose>PicName</AttachmentPurpose>
<AttachmentMIMEType>jpg</AttachmentMIMEType>
</ProductAttachment>
<ObjectAttribute>
<AttributeID> Processor Speed</AttributeID>
<AttributeValue>500MHZ</AttributeValue>
</ObjectAttribute>
<ObjectAttribute>
<AttributeID>Battery Life</AttributeID>
<AttributeValue>6 hours</AttributeValue>
</ObjectAttribute>
</Product>
An XML implementation typically consists of three parts: the XML document, a document
type definition (DTD) and a stylesheet (XSL), which are usually stored as separate files. We
need a simple example to understand how these relate. Let’s take the example of a bookstore
cataloguing different books. You will see from this example that it is equivalent to using a
database such as Microsoft Access to define database fields about the books and then storing
and displaying their details.
The XML document contains the data items, in this case the books, and it references the
DTD and XSL files: