Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Using XHTML+RDFa DOCTYPE(Editing an XHTML+RDFa document)
Using XHTML+RDFa DOCTYPE [message #493577] Tue, 27 October 2009 03:05 Go to next message
Brian Peterson is currently offline Brian PetersonFriend
Messages: 3
Registered: October 2009
Junior Member
I'm trying to edit an XHTML file that has the W3C XHTML+RDFa DOCTYPE,

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

Just like this page:
http://sw.joanneum.at/scovo/schema.html

But the HTML editor doesn't seem to be picking up the DTD. I get warnings on the xmlns attribute, the title and link elements, and all of the XHTML+RDFa attributes. I'm using the JEE download of Galileo 3.5.1 and I just updated the WTP XML editor. Is there some other feature or plugin I need?

Brian
Re: Using XHTML+RDFa DOCTYPE [message #493733 is a reply to message #493577] Tue, 27 October 2009 17:34 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2342
Registered: July 2009
Senior Member
Brian Peterson wrote:
> I'm trying to edit an XHTML file that has the W3C XHTML+RDFa DOCTYPE,
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
> "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
>
> Just like this page:
> http://sw.joanneum.at/scovo/schema.html
>
> But the HTML editor doesn't seem to be picking up the DTD. I get
> warnings on the xmlns attribute, the title and link elements, and all of
> the XHTML+RDFa attributes. I'm using the JEE download of Galileo 3.5.1
> and I just updated the WTP XML editor. Is there some other feature or
> plugin I need?

The HTML Editor only supports HTML 4.01 and recognized XHTML
versions; it's not built to be used with other DTDs. You'll have to
open the file using the XML Editor to use that specific DTD.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: Using XHTML+RDFa DOCTYPE [message #494054 is a reply to message #493733] Thu, 29 October 2009 00:10 Go to previous messageGo to next message
Brian Peterson is currently offline Brian PetersonFriend
Messages: 3
Registered: October 2009
Junior Member
I tried the XML Editor using 3.5.1, and I still get warnings about undefined attributes -- the ones defined in the XHTML+RDFa DTD. I even get an undefined warning about xmlns. I loaded the DTD itself and it validates without any errors or warnings.

Is there anything I can look at to see why the XML Editor doesn't recognize the RDFa attributes defined in the DTD? Or see what Eclipse/WTP thinks is defined in the DTD?

Brian
Re: Using XHTML+RDFa DOCTYPE [message #494063 is a reply to message #494054] Thu, 29 October 2009 02:42 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2342
Registered: July 2009
Senior Member
Brian Peterson wrote:
> I tried the XML Editor using 3.5.1, and I still get warnings about
> undefined attributes -- the ones defined in the XHTML+RDFa DTD. I even
> get an undefined warning about xmlns. I loaded the DTD itself and it
> validates without any errors or warnings.
>
> Is there anything I can look at to see why the XML Editor doesn't
> recognize the RDFa attributes defined in the DTD? Or see what
> Eclipse/WTP thinks is defined in the DTD?

I didn't see a warning about the xmlns attribute, but I had to
specify a doctype of lowercase "html", not uppercase, and create the
root element tag accordingly. A concrete xml file would help me
with reproducing your problem. I'm unfamiliar with what is being
added by this DTD.

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: Using XHTML+RDFa DOCTYPE [message #494290 is a reply to message #494063] Fri, 30 October 2009 02:02 Go to previous message
Brian Peterson is currently offline Brian PetersonFriend
Messages: 3
Registered: October 2009
Junior Member
Try the page at
http://sw.joanneum.at/scovo/schema.html

It is an XHMTL+RDFa document that uses the same DTD. I get similar warnings from that as I do from my own document.

Brian
Previous Topic:Make Use of Rename Events With Resource Change Events
Next Topic:What is the default url of wsdl file in eclipse-generated web services?
Goto Forum:
  


Current Time: Sun Dec 21 20:12:53 GMT 2014

Powered by FUDForum. Page generated in 0.02663 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software