[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: new to XML

  • From: Jyotinarayanan <ncjyoti@h...>
  • To: xml-dev@x...
  • Date: Mon, 28 Aug 2000 17:05:04 +0530

book.xml
Thanx John this works.
Only I had to remove the 2nd line of Book.xml:

<!DOCTYPE BOOKSTORE SYSTEM "bookshop.dtd">

What's supposed to be "bookshop.dtd"? I don't know about 'dtd'.

How do I get hold of a style sheet tool such as XML Spy or Stylus?

What are the other tools available for XML development?

Where can I learn XML and about XML?

Thanx in advance.

Jo

 

----- 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.

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

-----Original Message-----
From: Jyotinarayanan [mailto:ncjyoti@h...]
Sent: Monday, August 28, 2000 2:14 AM
To: xml-dev@x...
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).

Book.xml:

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

<!DOCTYPE BOOKSTORE SYSTEM "bookshop.dtd">

<BOOKSTORE>

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

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

<TITLE>The Round Door</TITLE>

<AUTHOR>Tom Evans</AUTHOR>

<YEAR_PUBLISHED>1996</YEAR_PUBLISHED>

<ISBN>0-9546-0274-3</ISBN>

<PRICE>$23.00</PRICE>

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

</BOOK>

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

<TITLE>Creating Real Xml Applications</TITLE>

<AUTHOR>Bill Eaton</AUTHOR>

<YEAR_PUBLISHED>1998</YEAR_PUBLISHED>

<ISBN>7-4562-0167-8</ISBN>

<PRICE>$35.00</PRICE>

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

</BOOK>

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

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

<AUTHOR>Bert Colewell</AUTHOR>

<YEAR_PUBLISHED>1993</YEAR_PUBLISHED>

<ISBN>5-6524-3054-1</ISBN>

<PRICE>$22.00</PRICE>

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

</BOOK>

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

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

<AUTHOR>Daphne Griswald</AUTHOR>

<YEAR_PUBLISHED>1989</YEAR_PUBLISHED>

<ISBN>6-7896-2498-2</ISBN>

<PRICE>$15.00</PRICE>

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

</BOOK>

</BOOKSTORE>

 

Bookstore.xsl:

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

<xsl:template match="/">

<html>

<body>

<H2>BOOKSTORE SYSTEM</H2>

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

<tr>

<th>TITLE</th>

<th>AUTHOR</th>

<th>YEAR</th>

<th>ISBN</th>

<th>PRICE</th>

<th>REVIEW</th>

</tr>

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

<tr>

<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>

</tr>

</xsl:for-each>

</table>

</body>

</html>

</xsl:template>

</xsl:stylesheet>

Thanx in advance,

Jo


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.