cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Albert, Kevin" <kjalb...@software.rockwell.com>
Subject RE: XSP
Date Tue, 08 Aug 2000 14:43:00 GMT
You've not shown a complete xml tree, so it is somewhat difficult to give a complete answer.

This is not tested, but have you tried something like the following in the template that processes
the image elements' parent node:

<table>
  <xsl:for-each select="image[@type='photo1']">
    <tr><td><a>
      <xsl:attribute name="href">
        <xsl:value-of select="@link"/>
      </xsl:attribute>
      <xsl:value-of select="@legend"/>
    </a></td></tr>
  </xsl:for-each>
</table>

 ... repeat above for photo2 types ...

Regards,
Kevin Albert
Rockwell Software


-----Original Message-----
From: Rogerio Lacerda [mailto:rogerforum@newmail.net]
Sent: Monday, August 07, 2000 5:10 PM
To: cocoon-dev@xml.apache.org
Subject: XSP


Problem:

I have a XML:

<image legend="legend" type="photo2" link="image/photo2.jpg" />
<image legend="legend" type="photo1" link="image/photo1.jpg" />

But I need show in first table the photo1 and in second table the photo2...

The photo2 ( like above ) is in first line and photo1 in second line...how I
process this XSL/XSP ???

The XSL with XSP dont accept CALL-TEMPLATE...

Thanxs a lot,


Roger



Mime
View raw message