Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » How to get the HTML content type to expose my schem extensions?
How to get the HTML content type to expose my schem extensions? [message #150050] Wed, 30 November 2005 21:17 Go to next message
Steve Speicher is currently offline Steve SpeicherFriend
Messages: 87
Registered: July 2009
Member

Greetings,

I'm attempting to define an alternate XML Schema for XHTML, using W3C's
xhtml11.xsd + some modifications (namely adding XForms elements as valid
child nodes of XHTML nodes).

So I've updated my simple.xhtml file as such (adding xsi:schemaLocation):

<?xml version="1.0" encoding="ASCII"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/1999/xhtml xhtml+xforms.xsd">
<head>
....

So it has a direct link to my modified schema. The content assist and
validator don't recognize my changes. Though, if I rename my file to
simple.xml, then it does work as expected (recognizing the child
elements from XForms).

So my question is, is there a way I can extend the HTML content model to
recognize alternate/extended XHTML syntax?

Thanks in advance,
Steve Speicher
Re: How to get the HTML content type to expose my schem extensions? [message #151161 is a reply to message #150050] Thu, 08 December 2005 18:28 Go to previous message
Steve Speicher is currently offline Steve SpeicherFriend
Messages: 87
Registered: July 2009
Member

To follow up on this, I've create enhancement request to track this:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=119084

In short, there are some limitations in attempting to do this.

- Steve

Steve Speicher wrote:
> Greetings,
>
> I'm attempting to define an alternate XML Schema for XHTML, using
> W3C's xhtml11.xsd + some modifications (namely adding XForms elements
> as valid child nodes of XHTML nodes).
>
> So I've updated my simple.xhtml file as such (adding xsi:schemaLocation):
>
> <?xml version="1.0" encoding="ASCII"?>
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:xforms="http://www.w3.org/2002/xforms"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.w3.org/1999/xhtml xhtml+xforms.xsd">
> <head>
> ....
>
> So it has a direct link to my modified schema. The content assist and
> validator don't recognize my changes. Though, if I rename my file to
> simple.xml, then it does work as expected (recognizing the child
> elements from XForms).
>
> So my question is, is there a way I can extend the HTML content model
> to recognize alternate/extended XHTML syntax?
>
> Thanks in advance,
> Steve Speicher
Previous Topic:Classes of dependent projects
Next Topic:How to add new context parameter to WebApp
Goto Forum:
  


Current Time: Tue Sep 24 10:43:02 GMT 2024

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

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

Back to the top