Sunday, March 25, 2012

converting an xml to html

Hi ,
I am a beginner. I AM trying to convert an xml fie into html :
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Edited with XML Spy v2007 (http://www.altova.com) -->
<CATALOG>
<CD>
<TITLE>Empire Burlesque</TITLE>
<ARTIST>Bob Dylan</ARTIST>
<COUNTRY>USA</COUNTRY>
<COMPANY>Columbia</COMPANY>
<PRICE>10.90</PRICE>
<YEAR>1985</YEAR>
</CD>
<CD>
<TITLE>Hide your heart</TITLE>
<ARTIST>Bonnie Tyler</ARTIST>
<COUNTRY>UK</COUNTRY>
<COMPANY>CBS Records</COMPANY>
<PRICE>9.90</PRICE>
<YEAR>1988</YEAR>
</CD>
</CATALOG>I thought i should first create a DTD for this .Is that
true?
Please help me get started.
-ShyamJust create an XSLT stylesheet. Here are some examples.
http://www.topxml.com/xsltstylesheets/
"shyamali" <shyamalibala@.gmail.com> wrote in message
news:1172074617.679808.198740@.j27g2000cwj.googlegroups.com...
> Hi ,
> I am a beginner. I AM trying to convert an xml fie into html :
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!-- Edited with XML Spy v2007 (http://www.altova.com) -->
> <CATALOG>
> <CD>
> <TITLE>Empire Burlesque</TITLE>
> <ARTIST>Bob Dylan</ARTIST>
> <COUNTRY>USA</COUNTRY>
> <COMPANY>Columbia</COMPANY>
> <PRICE>10.90</PRICE>
> <YEAR>1985</YEAR>
> </CD>
> <CD>
> <TITLE>Hide your heart</TITLE>
> <ARTIST>Bonnie Tyler</ARTIST>
> <COUNTRY>UK</COUNTRY>
> <COMPANY>CBS Records</COMPANY>
> <PRICE>9.90</PRICE>
> <YEAR>1988</YEAR>
> </CD>
> </CATALOG>I thought i should first create a DTD for this .Is that
> true?
> Please help me get started.
> -Shyam
>|||On Feb 21, 11:16 am, "shyamali" <shyamalib...@.gmail.com> wrote:
> Hi ,
> I am a beginner. I AM trying to convert an xml fie into html :
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!-- Edited with XML Spy v2007 (http://www.altova.com) -->
> <CATALOG>
> <CD>
> <TITLE>Empire Burlesque</TITLE>
> <ARTIST>Bob Dylan</ARTIST>
> <COUNTRY>USA</COUNTRY>
> <COMPANY>Columbia</COMPANY>
> <PRICE>10.90</PRICE>
> <YEAR>1985</YEAR>
> </CD>
> <CD>
> <TITLE>Hide your heart</TITLE>
> <ARTIST>Bonnie Tyler</ARTIST>
> <COUNTRY>UK</COUNTRY>
> <COMPANY>CBS Records</COMPANY>
> <PRICE>9.90</PRICE>
> <YEAR>1988</YEAR>
> </CD>
> </CATALOG>I thought i should first create a DTD for this .Is that
> true?
> Please help me get started.
> -Shyam
And here are some XSLT Tools to design your stylesheet:
http://www.stylusstudio.com/xslt.html
Download free trial from: http://www.stylusstudio.com/xml_download.html
Sincerely,
The Stylus Studio Team
http://www.stylusstudio.com

No comments:

Post a Comment