XML + XSL Problem

sangeet302
07-22-2002, 08:29 AM
Hi,
I am facing a severe problem using XSL with my XML file.

I want to display the books detail category wise.

Below attahced is the XML file.

In it <entry> tag represents the Category and Detailbook tag represents the Books inside those category.

I want to have a display is this format.

Category Name
Book Name Book Price
Book Name Book Price

Category Name
Book Name Book Price



Here is my XML :
<root>
<books><entry><bogpicture>0</bogpicture>
<category>Business Reference</category>
<detailbook><detail><disp>1</disp>
<title>This Wired Home: The Microsoft Guide to Home Networking</title>
<price>29.99</price>
<description>If youre running more than one PC under your roof, THIS WIRED HOME shows you how to

build a simple network that quickly multiplies the computing power for your family or home

office.</description>
<image>boxshots/press/3759.gif</image>
<url>/Product.pasp?txtCatalog=Books&amp;txtCategory=&amp;txtProductID=This+Wired+Hom e%3A++The+Mic

rosoft+Guide+to+Home+Networking</url>
</detail>
<detail><disp>2</disp>
<title>This Wired Home: The Microsoft Guide to Home Networking</title>
<price>29.99</price>
<description>If youre running more than one PC under your roof, THIS WIRED HOME shows you how to

build a simple network that quickly multiplies the computing power for your family or home

office.</description>
<image>boxshots/press/3759.gif</image>
<url>/Product.pasp?txtCatalog=Books&amp;txtCategory=&amp;txtProductID=This+Wired+Hom e%3A++The+Mic

rosoft+Guide+to+Home+Networking</url>
</detail>
</detailbook>
</entry>
<entry><bogpicture>0</bogpicture>
<category>Development Reference</category>
<detailbook><detail><disp>1</disp>
<title>PC 98 System Design Guide</title>
<price>29.99</price>
<description>This book provides the latest, most authoritative guidelines for everyone whos

creating next-generation PCs, components, peripherals, and device drivers. The must-have

reference youll want to keep close at hand.</description>
<image>boxshots/press/1479.gif</image>
<url>/Product.pasp?txtCatalog=Books&amp;txtCategory=&amp;txtProductID=PC+98+System+D esign+Guide</

url>
</detail>
</detailbook>
</entry>
<entry><bogpicture>0</bogpicture>
<category>Education Reference</category>
<detailbook><detail><disp>2</disp>
<title>Deploying Microsoft Office 2000 Notes from the Field</title>
<price>39.99</price>
<description>DEPLOYING MICROSOFT OFFICE 2000 NOTES FROM THE FIELD is a valuable technical

resource that outlines the best practices and procedures for deploying Office 2000 in an

enterprise environment.</description>
<image>boxshots/press/3377.gif</image>
<url>/Product.pasp?txtCatalog=Books&amp;txtCategory=&amp;txtProductID=Deploying+Micr osoft+Office+

2000+Notes+from+the+Field</url>
</detail>
<detail><disp>2</disp>
<title>Microsoft Excel 2000 Learning Kit</title>
<price>29.99</price>
<description>MICROSOFT EXCEL 2000 LEARNING KIT provides both multimedia-based training and

complete print-based reference information about Microsoft Excel 2000. You can choose the

learning method that best meets your needs to learn Microsoft Excel 2000

effectively.</description>
<image>boxshots/press/4095.gif</image>
<url>/Product.pasp?txtCatalog=Books&amp;txtCategory=&amp;txtProductID=Microsoft+Exce l+2000+Learni

ng+Kit</url>
</detail>
</detailbook>
</entry>
<entry><bogpicture>0</bogpicture>
<category>Database</category>
<detailbook><detail><disp>1</disp>
<title>Microsoft Access/Visual Basic Step by Step</title>
<price>29.95</price>
<description>Learn to build personalized and customized Access solutions format the easy way with

MICROSOFT ACCESS/VISUAL BASIC STEP BY STEP. Includes fifteen self-paced lessons with disk-based

practice files so you can learn at your own pace.</description>
<image>boxshots/press/396.gif</image>
<url>/Product.pasp?txtCatalog=Books&amp;txtCategory=&amp;txtProductID=Microsoft+Acce ss%2FVisual+B

asic+Step+by+Step</url>
</detail>
</detailbook>
</entry>
</books>
</root>

ChiefRedBull
07-22-2002, 11:46 AM
What is the problem?

Thinker
07-22-2002, 06:34 PM
What have you tried for your XSLT?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum