You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Uslu, Cihan Y (MED)" <Ci...@med.ge.com> on 2001/08/15 18:57:23 UTC

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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>