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

Re: XHTML [WAS: Grouping into a table (for vertical a

Subject: Re: XHTML [WAS: Grouping into a table (for vertical alignment)]
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 28 May 2004 10:34:51 +0100
input type empty
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

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