Cihan
You access the attributes of a node using the @ nomenclature and then define
a separate template for the attribute.
Take a look at
http://www.ibiblio.org/xml/books/bible2/chapters/ch17.html
Mark
-----Original Message-----
From: Uslu, Cihan Y (MED) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 5:57 PM
To: [EMAIL PROTECTED]
Subject: how to use attributes to form a table
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
________________________________________________________________________
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>