err... correct me if I'm wrong, but the lack of a DTD *is* the problem. Xerces is telling you:


NAMESPACE_ERR "An attempt is made to create or change an object in a way which is 
incorrect with regard to namespaces."

        right... but this implies that Xerces is doing some sort of internal validation. 
That is, it has some sort of DTD it is working against. I suspect that even if you don't 
specify an HTML DTD, it uses some internal version. Anyway, and it tries validating the 
HTML code when it runs into "wicket:id" and flags it as invalid because as far 
as it knows, it is. Unless you supply it with a DTD that indicates otherwise, it won't 
know. You are asking for a way to have it be less strict when parsing HTML? If you know 
of a less strict HTML DTD, try pointing Xerces at it.



My 2 cents is that we should just work on the Wicket DTD. We need one anyway (we already have a RFE for this) so why not just make one and kill both birds with one stone?

Gili

Juergen Donnerstag wrote:

as I mentioned. Though a DTD/schema would be nice, I'd prefer to find
a solution which doesn't require it. I'd really like to understand WHY
cloneNode() fails.

Juergen

PS: a nice page about namespace: http://www.rpbourret.com/xml/NamespacesFAQ.htm


On Mon, 21 Mar 2005 13:06:12 -0500, Gili <[EMAIL PROTECTED]> wrote:


  Ok, so... err... who is writing this DTD? Anyone?

Gili

Juergen Donnerstag wrote:



On Mon, 21 Mar 2005 10:17:01 -0500, Gili <[EMAIL PROTECTED]> wrote:




 I don't think you'll find what you're looking for. You will never
find a HTML DTD that allows wicket:id and I don't think providing a
Wicket DTD will help you if you embed Wicket attributes in HTML tags. I
hope I am wrong on this, but I suspect this is the way it works.





You don't need to modify the HTML DTD/schema. Namespaces, and that is
what they are for, allow you to specify your own (additional)
namespace incl. the associated DTD/schema. E..g.

<html xmlns:xhtml="http:/...." xmlns:wicket="http://....."; >

you keep them completely separate and you may add as many namespaces
as you like.

Juergen


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop






-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop






-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to