[xsl] [Problem] transformed code does not close <input> tags

Subject: [xsl] [Problem] transformed code does not close <input> tags
From: "Wong Chin Shin" <publicbbs@xxxxxxxxxxxxxxxx>
Date: Mon, 29 Nov 2004 12:05:59 +0800
Hi,

I created a form that is laid out using XSLT transformation here:

http://www.nascencetech.com/recruitexpressmy/webadmin/AddPage.xml

The XSL file is here: 

http://www.nascencetech.com/recruitexpressmy/xsl/webadmin.xsl

Between lines 144 and 149 in the XSL file is my transformation for text
boxes:

<input type="text" size="30" maxlength="255">
	<xsl:attribute name="id"><xsl:value-of select="@id"
/></xsl:attribute>
	<xsl:attribute name="name"><xsl:value-of select="@name"
/></xsl:attribute>
</input>

However, if you see the sample output (which I have uploaded to
http://www.nascencetech.com/recruitexpressmy/webadmin/testAddPage.htm for
reference) that comes out which I used both JEdit and Treebeard to generate,
every single textbox did not get closed! Which basically breaks validation
for XHTML.

I simple don't understand why this would be so since I explicitly closed the
tag in the XSL file itself. The XSL file wouldn't even parse if I didn't...

Still rather new to this, hope one of you can point me to the right
direction.

Thanks!
Wong

Current Thread