This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Using attributes to form a table
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Using attributes to form a table
- From: "Uslu, Cihan Y (MED)" <Cihan dot Uslu at med dot ge dot com>
- Date: Wed, 15 Aug 2001 11:55:51 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
I need help to transform following XML into desired output, I'm using
cocoon1.8.2 to transform the XML into HTML.
I was wondering how can it be done with recursive progrmming style.thank
you in advance.
Cihan
<?xml version="1.0"?>
<Course>
<Module ModuleNum="01" >
<Concept>
<ConceptDetail>
<LiteralExample>
<Animation FileRef="xr525_02_040_010a"
FileSource="Audiographics powerpoint presentation
slide 6"
ClickRef="xr525_02_040_010ap"
ScreenNum="02_030_010"/>
</LiteralExample>
</ConceptDetail>
</Concept>
</Module>
<Module ModuleNum="02">
<Concept>
<!--deleted some elements with many childs and siblings -->
</Concept>
<Concept>
<ConceptDetail>
<LiteralExample>
<Graphic FileRef="ct525_02_030_010a"
FileSource="Audiographics powerpoint presentation slide
6"
HasClick="yes"
ClickRef="ct525_02_030_010ap"
ScreenNum="02_030_010"/>
</LiteralExample>
</ConceptDetail>
<Concept>
</Module>
<Module>
<!-- more elements -->
</Module>
</Course>
This is the output I want, nothing else!
in HTML Table;
File Reference : xr525_02_040_010a
File Source : Audiographics powerpoint presentation slide 6
Clickable : <!-- No
value here -->
Click Reference : ct525_02_030_010ap
Screen Number : 02_030_010
________________________________________________________________________
File Reference : ct525_02_030_010a
File Source : Audiographics powerpoint presentation slide 6
Has Click : yes
Click Reference : ct525_02_030_010ap
Screen Number : 02_030_010
________________________________________________________________________
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list