Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Infer an XML Schema or DTD grammar depending on the root element name
Infer an XML Schema or DTD grammar depending on the root element name [message #199177] Thu, 30 August 2007 13:52 Go to next message
Stanimir Stamenkov is currently offline Stanimir StamenkovFriend
Messages: 254
Registered: July 2009
Senior Member
Is there a setting to infer an XML Schema or DTD grammar for a file
being edited depending on the root element name even if there is no
DOCTYPE declaration or XML Schema location specified? This is
mostly relevant for document types defined in the no namespace.

--
Stanimir
Re: Infer an XML Schema or DTD grammar depending on the root element name [message #199186 is a reply to message #199177] Thu, 30 August 2007 13:54 Go to previous messageGo to next message
Stanimir Stamenkov is currently offline Stanimir StamenkovFriend
Messages: 254
Registered: July 2009
Senior Member
Thu, 30 Aug 2007 16:52:14 +0300, /Stanimir Stamenkov/:

> Is there a setting to infer an XML Schema or DTD grammar for a file
> being edited depending on the root element name even if there is no

"even if" is better stated as "when".

> DOCTYPE declaration or XML Schema location specified? This is mostly
> relevant for document types defined in the no namespace.

--
Stanimir
Re: Infer an XML Schema or DTD grammar depending on the root element name [message #199223 is a reply to message #199186] Thu, 30 August 2007 23:25 Go to previous messageGo to next message
David Carver is currently offline David CarverFriend
Messages: 174
Registered: July 2009
Senior Member
Stanimir Stamenkov wrote:
> Thu, 30 Aug 2007 16:52:14 +0300, /Stanimir Stamenkov/:
>
>> Is there a setting to infer an XML Schema or DTD grammar for a file
>> being edited depending on the root element name even if there is no
>
> "even if" is better stated as "when".
>
>> DOCTYPE declaration or XML Schema location specified? This is mostly
>> relevant for document types defined in the no namespace.
>
There is an option in the Preferences page (Preferences -> XML ->
Source) under grammar constratins that says "Use Inferred grammar in
absence of DTD/Schema". That might get you what you are looking for.

Dave
Re: Infer an XML Schema or DTD grammar depending on the root element name [message #199264 is a reply to message #199223] Fri, 31 August 2007 10:23 Go to previous messageGo to next message
Stanimir Stamenkov is currently offline Stanimir StamenkovFriend
Messages: 254
Registered: July 2009
Senior Member
Thu, 30 Aug 2007 18:25:41 -0500, /David Carver/:

> There is an option in the Preferences page (Preferences -> XML ->
> Source) under grammar constratins that says "Use Inferred grammar in
> absence of DTD/Schema". That might get you what you are looking for.

As far as I get it, this option dynamically builds a grammar using
the elements already found in the document. I was asking whether a
predefined grammar could be inferred depending on the present root
(document) element - pretty much like the standard catalog entries
but to map a document element name to a DTD/Schema. Again, usage of
XML Schema this way would make sense only for schemas which define
elements in no namespace - the other case is already handled by the
standard catalog entries.

--
Stanimir
Re: Infer an XML Schema or DTD grammar depending on the root element name [message #199791 is a reply to message #199264] Sun, 16 September 2007 09:26 Go to previous messageGo to next message
Stanimir Stamenkov is currently offline Stanimir StamenkovFriend
Messages: 254
Registered: July 2009
Senior Member
Fri, 31 Aug 2007 13:23:52 +0300, /Stanimir Stamenkov/:
> Thu, 30 Aug 2007 18:25:41 -0500, /David Carver/:
>
>> There is an option in the Preferences page (Preferences -> XML ->
>> Source) under grammar constratins that says "Use Inferred grammar in
>> absence of DTD/Schema". That might get you what you are looking for.
>
> As far as I get it, this option dynamically builds a grammar using the
> elements already found in the document. I was asking whether a
> predefined grammar could be inferred depending on the present root
> (document) element - pretty much like the standard catalog entries but
> to map a document element name to a DTD/Schema. Again, usage of XML
> Schema this way would make sense only for schemas which define elements
> in no namespace - the other case is already handled by the standard
> catalog entries.

Just for reference, the thing I'm talking about could be seen in the
features of the XMLBuddy editor <http://xmlbuddy.com/2.0/features.html>:

> o Validation settable to user-configurable DTD preference
> with matching root element name, e.g., <html>.

--
Stanimir
Re: Infer an XML Schema or DTD grammar depending on the root element name [message #199799 is a reply to message #199791] Mon, 17 September 2007 05:35 Go to previous message
Craig Salter is currently offline Craig SalterFriend
Messages: 169
Registered: July 2009
Senior Member
Take a look at the previous discussion here [1]. It sounds related to
what you're looking for...

[1] http://dev.eclipse.org/newslists/news.eclipse.webtools/msg13 512.html


Stanimir Stamenkov wrote:

> Fri, 31 Aug 2007 13:23:52 +0300, /Stanimir Stamenkov/:
>> Thu, 30 Aug 2007 18:25:41 -0500, /David Carver/:
>>
>>> There is an option in the Preferences page (Preferences -> XML ->
>>> Source) under grammar constratins that says "Use Inferred grammar in
>>> absence of DTD/Schema". That might get you what you are looking for.
>>
>> As far as I get it, this option dynamically builds a grammar using the
>> elements already found in the document. I was asking whether a
>> predefined grammar could be inferred depending on the present root
>> (document) element - pretty much like the standard catalog entries but
>> to map a document element name to a DTD/Schema. Again, usage of XML
>> Schema this way would make sense only for schemas which define elements
>> in no namespace - the other case is already handled by the standard
>> catalog entries.

> Just for reference, the thing I'm talking about could be seen in the
> features of the XMLBuddy editor <http://xmlbuddy.com/2.0/features.html>:

>> o Validation settable to user-configurable DTD preference
>> with matching root element name, e.g., <html>.
Previous Topic:Adding Trindad to web page editor palette
Next Topic:WTP project import/export and version control?
Goto Forum:
  


Current Time: Sat Nov 29 05:33:32 GMT 2014

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

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