logo       

Re: XMLC decided to change the HTML structure: msg#00035

java.enhydra.xmlc

Subject: Re: XMLC decided to change the HTML structure

On St, 2002-12-18 at 14:11, Richard Kunze wrote:
> > Exception in thread "main" org.enhydra.xml.xmlc.XMLCError: qualifiedName
> > is null for XHTML document; maybe trying to use a HTML parser on XHTML
>
> The error message says it all: You're using an HTML parser to parse XHTML :-)

I didn't know how to switch the parser. I thought the xerces was used as
default one.

> Adding "-parser xerces" to your command line should do the trick.

it did, thanks a lot (seems like renaming the files to *.xhtml would do
it all automatically for me?)

Anyway, I encountered a new problem:

<title id="title"> some page title </title>

Error: Attribute "id" must be declared for element type "title".

According to what I heard from the XHTML guy the "id" should be allowed
for <title> - and if not in XHTML 1.0 then definitely in 1.1.

What can I do in order to have the "id" tag there? I obviously need it
since I want to change the page title from within Enhydra dynamically.

Thanks in advance.

Petr


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise