[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Turning off 'well-formedness'

Subject: Turning off 'well-formedness'
From: Richard Garcia <RGarcia@xxxxxxxxxxxxxxx>
Date: Wed, 9 Jan 2002 13:20:55 -0800
richard garcia
Folks,

I am trying to create the following marked-up tags using MSXML3 on an IE5.x
browser:

<td>
	data1 <br />
	data2 <br />
	data3 <br />
</td>
<td>
	data4 <br />
	data5 <br />
	data6 <br />
</td>
----------------------------------------------------------
my source file looks like:

<Data>
    <Record>data</Record>
    <Record>data</Record>
    <Record>data</Record>
    <Record>data</Record>
    <Record>data</Record>
    <Record>data</Record>
</Data>
----------------------------------------------------------
my stylesheet looks like:

<xsl:for-each select="Record">
	<xsl:variable name="recordNum"><xsl:number
count="Record"/></xsl:variable>
	<xsl:if test="(number($recordNum) = 1) or (number($recordNum) = 4)">
		<td>
	</xsl:if>
		<xsl:value-of select="."/><xsl:value-of
select="$recordNum"/><br />
	<xsl:if test="(number($recordNum) = 3) or (number($recordNum) = 6)">
		</td>
	</xsl:if>
</xsl:for-each>

I receive the following error:

End tag 'xsl:if' does not match the start tag 'td'. Error processing
resource.  Using <![CDATA[ <td> ]]> does create my desired tag structure but
it doesn't mark-up the <td> & </td> tags.

Is there a better way of coding this?  Or if it is possible, how can one
turn off XML/HTML 'well-formedness'?

Help!

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.