Sunday, 8 February 2015

How to write XSLT for the below XML



Please suggest me how to write the XSLT for the below XML



<?xml-stylesheet type="text/xsl" href="list8.xsl"?>
<SeminarDetails>
<CourseName>XML Introduction</CourseName>
<Code>1234</Code>
<Content1>
<Chapter1>XML Overview</Chapter1>
<Chapter1>XML Document Creation</Chapter1>
<Chapter1>DTD</Chapter1>
<Chapter1>XML Schema</Chapter1>
<Chapter1>XSLT, XPath</Chapter1>
<Chapter1>Namespace</Chapter1>
</Content1>
<Content2>
<Chapter2>XML basics</Chapter2>
<Chapter2>XML Document basics Creation1</Chapter2>
<Chapter2>Description</Chapter2>
<Chapter2>XML Schema1</Chapter2>
</Content2>
</SeminarDetails>


I need 3 columns like below



Code Content1 Content2
1234 XML Overview XML basics
XML Document Creation XML Document basics Creation1
DTD Description
XML Schema
XSLT, XPath

No comments:

Post a Comment