You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by IvanLatysh <iv...@yourmail.com> on 2002/01/23 20:31:14 UTC

I am sorry that I ask here. One question about XSL for FOP

Hi all.
I am trying to build table where each row are new record from xml fiule.

I have XSL that building page.
But I need to put into this page table where each row should have data from <_insert> (my xml at
the and of message)
Like this.
+--+--------------+
| 1 | personal letter |
| 2 | personal tetter2|
+--+--------------+

Could you please help me. I do understand that I should create template like this:

<xsl:template match ="_task/_insert">
 <fo:table-row>
 <fo:table-cell><fo:block><xsl:value-of
select="_task/_insert/order"/></fo:block></fo:table-cell>
 </fo:table-row>
 <xsl:apply-templates/>
</xsl:template>

But after this point I am stuck I don't know how to put all this into my document.

my XML:
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <_task>
    <company><![CDATA[!test company!]]></company>
       <_insert>
         <order>1</order>
         <object><![CDATA[personal letter]]></object>
       </_insert>
       <_insert>
         <order>2</order>
         <object><![CDATA[personal letteer2]]></object>
       </_insert>
  </_task>
</root>

Sincerely yours, Ivan Latysh.
Ivan@yourmail.com
http://ivan.yourmail.com


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org