Subject: RE: [xsl] XHTML [WAS: Grouping into a table (for vertical alignment)] From: "Daniel Joshua" <daniel.joshua@xxxxxxxxxxxx> Date: Fri, 28 May 2004 19:17:30 +0800 |
> This Page Is Valid XHTML 1.0 Transitional! > > The uploaded file was checked and found to be valid XHTML 1.0 Transitional. > This means that the resource in question identified itself as "XHTML 1.0 > Transitional" and that we successfully performed a formal validation using > an SGML or XML Parser (depending on the markup language used). Thanks all!!! Especially Michael Kay, David Carlisle & Wendell Piez who helped fix & re-fix my XSL. Regards, Daniel -----Original Message----- From: David Carlisle [mailto:davidc@xxxxxxxxx] Sent: Friday, 28 May, 2004 5:35 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] XHTML [WAS: Grouping into a table (for vertical alignment)] > That is not even HTML, so would not even pass my 'loose' definition. That was my point. You are assuming that the local names like "br" "h2" etc are the "main" part of the name and the namespace name is somehow optional, but that isn't how XSLT works, the name consists of two equally important strings the namespace name and the local name. So although it looks to a human eye "like" xhtml if it has the right local names, to xslt it is no more xhtml than my example. Could you tell me what else further I need to modify to get it consider XHTML. as you had in a later post, with the xtml namespace (and also to be (dtd) valid you could also specify the xhtml doctype in xsl:output, again as you had earlier. (and as you have in this post) <input type="text" name="userName" value=""> </input> input is declared as type EMPTY so the parser has to see either <input type="text" name="userName" value=""></input> or <input type="text" name="userName" value=""/> So it is complaining when it sees characters (a newline) in after the start tag as it needs to see an end tag there. XSLT more or less forces you to make well formed XML, but it does not force you to generate elements valid to any specified output type. The template you have would not moke that white space, the culprit is <xsl:output method="xml" version="1.0" encoding="iso-8859-1" indent="yes" ^^^^^^^^^^^^ doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" So don't do that. David -- The LaTeX Companion http://www.awprofessional.com/bookstore/product.asp?isbn=0201362996 http://www.amazon.co.uk/exec/obidos/tg/detail/-/0201362996/202-7257897-06198 04 ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XHTML [WAS: Grouping into, David Carlisle | Thread | [xsl] XHTML rendering: xmlns Attrib, christof.hoeke |
Re: [xsl] XHTML [WAS: Grouping into, David Carlisle | Date | [xsl] how to test if a child node h, Chen Yi |
Month |