|
|
|
|
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 05:26   |
Eclipse User |
|
|
|
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 01:35  |
Eclipse User |
|
|
|
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>.
|
|
|
Powered by
FUDForum. Page generated in 0.15711 seconds