Subject: Re: [xsl] XHTML [WAS: Grouping into a table (for vertical alignment)] From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 28 May 2004 10:34:51 +0100 |
> 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-0619804 ________________________________________________________________________ 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, Michael Kay | Thread | RE: [xsl] XHTML [WAS: Grouping into, Daniel Joshua |
Re: [xsl] formatting numbers, David Carlisle | Date | RE: [xsl] XHTML [WAS: Grouping into, Daniel Joshua |
Month |