On Fri, 17 Aug 2001, Mike Dewhirst wrote:

> We are using an CM system which parses the files you put into it. Especially
> it check HTML validity, and having more than two (close/open) "html" in the
> page fails that validation.

So where do your pages have more than one close/open pair?  Or is it
interpreting every <html:foo ...> tag as if it were <html>?

If that's the case, you probably want a smarter parser ... one that
understands XML namespaces.

> My idea was to rename the "html" custom tag to
> "xhtml", but that would probably mean changing the struts-html.tld, as well
> as struts source code? I don't really want to do that.. 
> 
> So, 2 questions:
> 
> 1) Has anybody ever run into a simmilar problem?
> 2) If I did decide to rename the "html" tag to "xhtml", what would I need to
> do?
> 

As others have pointed out, you can use any prefix you like.  Using
"html" is just a convention.  Likewise, you can rename the TLD file if you
want, but I don't see how that would change anything, unless your parser
is just looking for the character string "html" anywhere -- in which case
you're going to have lots of problems parsing JSP text that has custom
tags in it.

Craig


Reply via email to