Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


table width ignored

From: "Lee" <lee.baker@-------.--->
To: NULL
Date: 12/5/2006 7:24:00 AM

Hi,

I would like to be able to set the width of a table. Using the xsl
below it does not work and the first row is on a single line, hence is
very wide (above the width value specified). It appears that using
"<xsl:value-of select="somexmltag"/>" screws up the width setting on
the table, see below.

Suggestions greatly appreciated.

Lee

The applicable xsl code is as follows:

.sectionTableBorderSub
{
	width:400px;
}
.tableHdr
{
	border-width	: 1pt;
	border-style	: solid;
	border-color	: black;
	font-weight	: bold;
	text-align	: center;
	background-color: #CFCFCF;
}

.tableData
{
	border-width	: 1pt;
	border-style	: solid;
	border-color	: black;
	text-align		: right;
	background-color: #EFEFEF;
	vertical-align	: top;
}

<xsl:template match="/SOURCE/SUBROUTINE_CALLS">
	<H2>Subroutine Calls</H2>
	<xsl:if test="count(SUB_CALL) > 0">
	               <P><B>These are the subroutine calls within this
unit.</B></P>
		<TABLE CLASS="sectionTableBorderSub" FRAME="BORDER">
                                            <TR>
				<TD>Unit Name Unit Name Unit NameUnit NameUnit NameUnit NameUnit
NameUnit NameUnit NameUnit NameUnit NameUnit NameUnit NameUnit NameUnit
NameUnit NameUnit NameUnit NameUnit Name</TD>
				<TD CLASS="tableHdr">Call Address</TD>
			</TR>
			<xsl:apply-templates select="SUB_CALL" />
		</TABLE>
	</xsl:if>

</xsl:template>
<xsl:template match="SUB_CALL">
	<TR>
                          <TD CLASS="tableData"><xsl:value-of
select="subroutineName"/>	</TD>
                          <TD CLASS="tableData"><xsl:value-of
select="callAddress"/>		</TD>
	</TR>
</xsl:template>

When I replace

<TD CLASS="tableData"><xsl:value-of select="subroutineName"/>	</TD>
<TD CLASS="tableData"><xsl:value-of select="callAddress"/>		</TD>

with

<TD CLASS="tableData">hard coded text</TD>
<TD CLASS="tableData">hard coded text</TD>

then the width is controlled as I wish.



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