This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: ?MSXML transformNode
- To: Serg Stone <serg_stone at iname dot com>
- Subject: Re: ?MSXML transformNode
- From: Jeni Tennison <jeni at friday dot u-net dot com>
- Date: Wed, 09 Aug 2000 19:05:19 +0100
- Cc: xsl-list at mulberrytech dot com
- Reply-To: xsl-list at mulberrytech dot com
Serg,
>I have XML file and XSLT file that converts it into HTML. The result
>is simple HTML table. It has <COL> specifications for all columns. For
>some columns <COL align="right"> is used.
>When I apply transformNode() function to the table right align is
>changed by simple left align. Is it a bug or feature of MSIE?
In your stylesheet, you are creating the COL elements through:
><xsl:template match="tbl_col/tbl_row">
><TR>
> <xsl:for-each select="*">
> <COL align="right">
> <xsl:value-of select="." />
> </COL>
> </xsl:for-each>
></TR>
></xsl:template>
This creates the COL elements within a TR, whereas COLs are supposed to be
first within a TABLE for them to have any effect.
It might be worth you running your XML and stylesheet through a XSLT
processor manually to see what HTML it generates: this should highlight any
bugs in the HTML that is generated, as opposed to those in the stylesheet
itself.
I hope that helps,
Jeni
Dr Jeni Tennison
Epistemics Ltd * Strelley Hall * Nottingham * NG8 6PE
tel: 0115 906 1301 * fax: 0115 906 1304 * email: jeni.tennison@epistemics.co.uk
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list