Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSL Validation Error

Status
Not open for further replies.

Silvinho

Programmer
Jul 9, 2001
58
GB
Im new to xml.xsl and I'm having a problem getting an xsl fragment page to validate to XHTML 1.0. I keep getting the error:

end tag for "img" omitted, but OMITTAG NO was specified

basically the xsl sheet reformats the output for images and removes the end />.

original:
<img src="spacer.gif" alt="" width="1" height="1" />

output
<img src="spacer.gif" alt="" width="1" height="1">

why does the ouput always remove the end tag and how do you stop it from happening?
 
>why does the ouput always remove the end tag and how do you stop it from happening?
Because your xsl script is wrong...
 
Post your XSL

Jon

"I don't regret this, but I both rue and lament it.
 
I figured it out, i needed to output the xsl as xml rather than html!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top