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

RE: html tags not closing

Subject: RE: html tags not closing
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 6 Jun 2007 19:21:03 +0100
RE:  html tags not closing
You're using the HTML output method, which produces valid HTML, but this
isn't likely to be well-formed XML. If you want to parse the output using an
XML parser, then generate XML using method="xml". Or with XSLT 2.0 you can
use method="xhtml".

Michael Kay

> -----Original Message-----
> From: Gonzalo Cordero [mailto:gonzalo@xxxxxxxxxxxxxxx] 
> Sent: 06 June 2007 18:59
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  html tags not closing
> Hi guys:
> I'm getting an error i've never had before, when I open a 
> create an element img, it never get close in the ouput:
> <xsl:template match="draw:image" mode="auto">
>    <xsl:element name="img">
>       <xsl:attribute name="src">
>         <xsl:value-of select="(@xlink:href)"/>
>       </xsl:attribute>   
>     </xsl:element>
>   </xsl:template>
> So when I tried to manipulate the output, the saxon parser 
> yells at me for not having the tag <img> closed. Same thing 
> happens with this:
> <div id="page">
>      <div id="dots" align="left" style="overflow: visible;
> background-color: rgb(255, 255, 255);">
>       <div id="preview" style="position:">
>       <p><br/></p>
>      </div>
>          <div
> style="height:828px;width:0px;border:0px;border-style:solid;"></div>
>      </div>
>  </div>
> It doesn't like that <br> tag, it says expected </br> error.
> Any ideas? Maybe the output it's not correct or the html I'm 
> producing? 
> I'm not including anything extra like language settings or 
> anything in the html I'm producing, just plain <html>
> Thanks.

Current Thread


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.
First Name
Last Name
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.