I'm trying to write an xslt to generate another xslt that purpose is replacing only all xsl:fo with html tags..XSLT 1
I use CDATA around "xsl" namespace for avoid processing this kind of tag by the xslt. My scope is processing only xsl:fo directive and replace for example :
y
this is treated as text so i can copy it with ??
,
at ,
]]>
x
I want traslate fo:table+fo:table-body with table tag, and fo:table-column with td width="..%", fo:table-row with tr.. Td width is not so easy to retrieve because the width property belong to fo:table-column and fo:table-cell handling the tag.
I try to loop fo:table-column when i read a table-cell i'm writing td and calculate the width using the property column-width obtained by precedent tag fo:table-column: i use the position() of tag table-column (first loop) in the fo:table-cell selection
for example here is my xslt tralslator for xsl:fo (above-mentioned):
abc #10; empty cell |
But i cant realize why all td's contains 'y',x and empty when it will belong only to the empty table-cell, seems it reads all fo:block..
abc table-cell #10; empty cell table-cell #10; y x | abc table-cell #10; empty cell table-cell #10; y x |
I need to obtain:
abc table-cell #10; empty cell | abc table-cell #10; y x |
if i replace the second loop
xsl : for-each
with
xsl : template
don't match anything!
Maybe *[$vPosition] doesn't work but it works if i replace number like 1 or 2..
What's wrong?
Thanks in advice!
Roby