|
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 |
|
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 #199264 is a reply to message #199223] |
Fri, 31 August 2007 10:23 |
|
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 |
|
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 |
Craig Salter 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>.
|
|
|
Powered by
FUDForum. Page generated in 0.03492 seconds