Missing xml:id attribute in IDEA 7.0 shipping xml.xsd

Hello,

first of all: What is the best forum for issues with the production IDEA not the EAP?

My problem is that all xml:id attributes in my DocBook 5.0 files are red. I use DocBook 5.0 with XSD. I linked the docbook.xsd to the http://docbook.org/ns/docbook namespace in the resources settings. In the same directory as the docbook.xsd is, I have the DocBook shipping xlink.xsd and xml.xsd. IDEA uses its own xml.xsd from lib/resources.jar!/standardSchemas/xml.xsd. This xml.xsd file does not contain the xml:id attribute. So it is displayed red.

1. Why is the xml:id attribute missing in the IDEA shipping xml.xsd
2. Why does IDEA use its own xml.xsd if the import from docbook.xsd says: <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/> and I have the xml.xsd in the same directory.

Alex

0
4 comments

1. The schema at URL http://www.w3.org/XML/1998/namespace does not have
xml:id.
2. It seems you need to map xml ns in external resource manager.

Alexander Kiel wrote:

Hello,

first of all: What is the best forum for issues with the production IDEA not the EAP?

My problem is that all xml:id attributes in my DocBook 5.0 files are red. I use DocBook 5.0 with XSD. I linked the docbook.xsd to the http://docbook.org/ns/docbook namespace in the resources settings. In the same directory as the docbook.xsd is, I have the DocBook shipping xlink.xsd and xml.xsd. IDEA uses its own xml.xsd from lib/resources.jar!/standardSchemas/xml.xsd. This xml.xsd file does not contain the xml:id attribute. So it is displayed red.

1. Why is the xml:id attribute missing in the IDEA shipping xml.xsd
2. Why does IDEA use its own xml.xsd if the import from docbook.xsd says: <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/> and I have the xml.xsd in the same directory.

Alex



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

The newest version of http://www.w3.org/XML/1998/namespace is http://www.w3.org/2001/xml.xsd. If you look at http://www.w3.org/XML/1998/xml.xsd you get a warning, that this is out of date.

Regards
Alex

0

Thank you, I would be grateful for the JIRA request

Alexander Kiel wrote:

The newest version of http://www.w3.org/XML/1998/namespace is http://www.w3.org/2001/xml.xsd. If you look at http://www.w3.org/XML/1998/xml.xsd you get a warning, that this is out of date.

Regards
Alex


--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.