Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


xsl runtime column generation

From: "virendra" <virendra.chandra@-----.--->
To: NULL
Date: 2/6/2006 6:54:00 AM
hi all,
can anybody help me? i am working on xml to pdf generation. i am using
nfop. i am facing one problem. let says,  there is one tag <Parent> .
and it has child tag let says <Child>.
i want to print this child tag in a column. let say if there are 100
child tag and let say a variable $no = 5 then i will have to create 5
columns. and after creating a column i will have to create new row. at
designing a xsl stylesheet i wouldn't know how many child will come.
becouse this xml file is generating at run time when i run my
application.
<fo:table>
		<fo:table-body>
<fo:table-row>

<xsl:for-each select="Child">
								<fo:table-cell>
									<fo:block font-family="verdana" color="#3464AC"
font-size="10pt">
									<fo:external-graphic alignment-adjust="center" scaling="60%">
																<xsl:attribute name="src">
																	<xsl:value-of select="$RootPath"/>
																	<xsl:value-of select="StatusImg"/>
																</xsl:attribute>
								</fo:external-graphic>&#xA0;&#xA0;
								<fo:external-graphic alignment-adjust="center">
																<xsl:attribute name="src">
																	<xsl:value-of select="$RootPath"/>
																	<xsl:value-of select="SearchableImg"/>
																</xsl:attribute>
								</fo:external-graphic>&#xA0;&#xA0;
															&#xA0;<xsl:value-of select="Title"/></fo:block>
								</fo:table-cell>
<xsl:if test="position() mod $no = 0">
<</fo:table-row>
<fo:table-row>
</xsl:if>
								</fo:table-body>
</fo:table>

in the above example this part is my requirement
"<xsl:if test="position() mod $no = 0">
<</fo:table-row>
<fo:table-row>
</xsl:if>
"
but i can't do like that because it matching the openning and closing
tag. so i am getting div tag mismatch error.

can any body suggest.
thanks in advance.



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent