OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: new to XML

[ Lists Home | Date Index | Thread Index ]
  • From: Jyotinarayanan <ncjyoti@hotmail.com>
  • To: xml-dev@xml.org
  • Date: Mon, 28 Aug 2000 17:08:49 +0530

Hi All,
When I view the XML data, the background is all yellow and everything appears in a table format.
How can I change the background colour? How can I arrange the data as I want it on the web browser?
How do I include images?
----- Original Message -----
Sent: Monday, August 28, 2000 12:47 PM
Subject: RE: new to XML

Just put the PI for the style sheet in the XML source after the <?XML ..?> PI as in:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="bookstore.xsl"?>
This assumes the bookstore.xsl is in the same base URL as the bookstore.xml.
You can also use a style sheet tool such as XML Spy or Stylus.

John F Schlesinger
SysCore Solutions
212 619 5200 x 219
917 886 5895 Mobile

-----Original Message-----
From: Jyotinarayanan [mailto:ncjyoti@hotmail.com]
Sent: Monday, August 28, 2000 2:14 AM
To: xml-dev@xml.org
Subject: new to XML

Hi All,

I've got the XML coding and the XSL stylesheet how do I combine these and how do I view these on a Web browser (I've got IE5.0).


<?xml version="1.0" encoding="UTF-8"?>



<!--J&R Booksellers Database-->

<BOOK GENRE="Fiction" IN_STOCK="Yes">

<TITLE>The Round Door</TITLE>





<REVIEW>An Intriguing Tale Of A Round Door In A Wall</REVIEW>


<BOOK GENRE="Non-Fiction" IN_STOCK="Yes">

<TITLE>Creating Real Xml Applications</TITLE>





<REVIEW>A Look At How To Build Real Xml Applications</REVIEW>


<BOOK GENRE="Fiction" IN_STOCK="No">

<TITLE>Over The Hills Of Yukon</TITLE>

<AUTHOR>Bert Colewell</AUTHOR>




<REVIEW>A Warm Story About A Man And A Moose In Yukon</REVIEW>


<BOOK GENRE="Fiction" IN_STOCK="Yes">

<TITLE>The Lion's Gold</TITLE>

<AUTHOR>Daphne Griswald</AUTHOR>




<REVIEW>One Of The Most Compelling Books Since "The Tiger's Silver".</REVIEW>





<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/TR/WD-xsl">

<xsl:template match="/">




<table border="2" bgcolor="yellow">









<xsl:for-each select="BOOKSTORE/BOOK">


<td><xsl:value-of select="TITLE"/></td>

<td><xsl:value-of select="AUTHOR"/></td>

<td><xsl:value-of select="YEAR"/></td>

<td><xsl:value-of select="ISBN"/></td>

<td><xsl:value-of select="PRICE"/></td>

<td><xsl:value-of select="REVIEW"/></td>








Thanx in advance,


  • References:


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS