This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ?MSXML transformNode


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]