[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
I am stumped trying to deterimne based upon my xml input file structure how to generate
the proper number of fo:table-column based upon OBJECT element(s) nested within its parent TABLE element.
My xml input file:
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" OCCURENCE="1">
<DPROW>
<OBJECT ALIGN="left" STYLE="background-color:#FFFFFF;" HEIGHT="10"/>
</DPROW>
</TABLE>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="842" OCCURENCE="2">
<DPROW>
<OBJECT ALIGN="left" WIDTH="3"/>
<OBJECT>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" OCCURENCE="2">
<DPROW>
<OBJECT WIDTH="4" HEIGHT="6"/>
<OBJECT WIDTH="22" HEIGHT="6"/>
<OBJECT WIDTH="67" HEIGHT="6"/>
<OBJECT WIDTH="2" HEIGHT="6"/>
<OBJECT WIDTH="211" HEIGHT="6"/>
<OBJECT WIDTH="2" HEIGHT="6"/>
<OBJECT WIDTH="273" HEIGHT="6"/>
<OBJECT WIDTH="48" HEIGHT="6"/>
<OBJECT WIDTH="92" HEIGHT="6"/>
<OBJECT WIDTH="2" HEIGHT="6"/>
<OBJECT WIDTH="2" HEIGHT="6"/>
<OBJECT WIDTH="82" HEIGHT="6"/>
<OBJECT WIDTH="6" HEIGHT="6"/>
<OBJECT WIDTH="22" HEIGHT="6"/>
<OBJECT WIDTH="5" HEIGHT="6"/>
</DPROW>
[..snip...]
Within my TABLE template I need a XPATH statement that works with my nested xml structure for determining fo:table-columns based upon the number of OBJECT elements. Specifically in the following xml structure
<TABLE><DPROW><OBJECT></OBJECT></DPROW></TABLE> should generate one fo:table-column;
<TABLE><DPROW><OBJECT></OBJECT><OBJECT></OBJECT></DPROW></TABLE> should generate two fo:table-column statements
<TABLE><DPROW><OBJECT></OBJECT><OBJECT></OBJECT><OBJECT></OBJECT></DPROW></TABLE> should generate three fo:table-column statements
- Scott
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
[xsl] Node Order and Value determination
Subject: [xsl] Node Order and Value determination From: scott gabelhart <swgabel@xxxxxxxxxxxx> Date: Mon, 02 Feb 2004 22:59:55 -0500 |
I am stumped trying to deterimne based upon my xml input file structure how to generate
the proper number of fo:table-column based upon OBJECT element(s) nested within its parent TABLE element.
My xml input file:
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" OCCURENCE="1">
<DPROW>
<OBJECT ALIGN="left" STYLE="background-color:#FFFFFF;" HEIGHT="10"/>
</DPROW>
</TABLE>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="842" OCCURENCE="2">
<DPROW>
<OBJECT ALIGN="left" WIDTH="3"/>
<OBJECT>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" OCCURENCE="2">
<DPROW>
<OBJECT WIDTH="4" HEIGHT="6"/>
<OBJECT WIDTH="22" HEIGHT="6"/>
<OBJECT WIDTH="67" HEIGHT="6"/>
<OBJECT WIDTH="2" HEIGHT="6"/>
<OBJECT WIDTH="211" HEIGHT="6"/>
<OBJECT WIDTH="2" HEIGHT="6"/>
<OBJECT WIDTH="273" HEIGHT="6"/>
<OBJECT WIDTH="48" HEIGHT="6"/>
<OBJECT WIDTH="92" HEIGHT="6"/>
<OBJECT WIDTH="2" HEIGHT="6"/>
<OBJECT WIDTH="2" HEIGHT="6"/>
<OBJECT WIDTH="82" HEIGHT="6"/>
<OBJECT WIDTH="6" HEIGHT="6"/>
<OBJECT WIDTH="22" HEIGHT="6"/>
<OBJECT WIDTH="5" HEIGHT="6"/>
</DPROW>
[..snip...]
Within my TABLE template I need a XPATH statement that works with my nested xml structure for determining fo:table-columns based upon the number of OBJECT elements. Specifically in the following xml structure
<TABLE><DPROW><OBJECT></OBJECT></DPROW></TABLE> should generate one fo:table-column;
<TABLE><DPROW><OBJECT></OBJECT><OBJECT></OBJECT></DPROW></TABLE> should generate two fo:table-column statements
<TABLE><DPROW><OBJECT></OBJECT><OBJECT></OBJECT><OBJECT></OBJECT></DPROW></TABLE> should generate three fo:table-column statements
- Scott
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Switching off character e, Stuart Brown | Thread | RE: [xsl] Node Order and Value dete, Jarno . Elovirta |
[xsl] Switching off character entit, AHynes | Date | RE: [xsl] Node Order and Value dete, Jarno . Elovirta |
Month |