RELAX-NG Support 1.0

A new version of the RELAX-NG Support plugin is available from IDEA's plugin manager or the IntelliJ
plugins website at http://plugins.intellij.net/plugin/?id=1783

Major changes since 0.9:

- Added conversion of RELAX-NG schemas with Trang (Tools -> Convert Schema...) as well as the
possibility to create RELAX-NG schemas from XML instance documents (Tools -> Generate Schema from
XML file...)
- Added ability to validate XML documents with RELAX-NG schemas via Tools -> Validate
- Added better support for Quick Documentation Lookup when authoring RNG files


Although this is labeled 1.0, please do not hesitate to post additional feature requests or other
issues you may encounter.


Happy RELAXing,
Sascha

4 comments

Hello Sascha,

It would be nice if there was some way to associate documents without an
explicit namespace with a .rng or .rnc schema.

Not sure what 'some way' would be...either an (unqualified) root tag name,
or an explicit per-file configuration option (similar to what XSLTSupport
provides).

-tt


0

Hello Taras,

It would be nice if there was some way to associate documents without an
explicit namespace with a .rng or .rnc schema.


You mean documents in the default ("") namespace? Yes, that sounds like a good idea.

(I think IDEA may even pick up an xsi:noNamespaceSchemaLocation declaration, but this is actually
illegal because it seems to be reserved to XML Schema and one usually wouldn't want this to refer to
a RELAX-NG schema anyway)

Not sure what 'some way' would be...either an (unqualified) root tag
name, or an explicit per-file configuration option (similar to what
XSLTSupport provides).


Well, actually I'm a bit reluctant to add yet another project config button, but maybe a less
intrusive solution would work. What about adding such a configuration to the Hector-popup panel?

Sascha

0

Well, it looks like this is not possible at all. There's no API that allows to provide such an
association between a no-namespace document and a schema file. This would require something like
http://www.jetbrains.net/jira/browse/IDEABKL-5165 - sorry.

com.intellij.xml.XmlSchemaProvider sounds a bit like it /could/ work, but it's not invoked at all in
such a case.

Sascha

0

Hello Taras,

the next version will have the possibility to configure a RELAX-NG schema in the Hector panel (see
the screenshot).

However, this only works for documents with an explicit xmlns="" declaration due to a limitation in
IDEA. Please see the discussion in http://www.jetbrains.net/jira/browse/IDEABKL-5165.

Sascha



Attachment(s):
no-namespace.PNG
0

Please sign in to leave a comment.