Element info doesn't contains documentation from xsd

SyntaxEditor Web Languages Add-on for Windows Forms Forum

Posted 16 years ago by Sergey Astachov
Version: 4.0.0261
Platform: .NET 2.0
Environment: Windows XP (32-bit)
Avatar
Information which I can see for elements when place mouse over it doesn't contain information from documentation section of xsd. It happens for all elements except root.

To reproduce this problem open Xml Reflection Using an XSD(Web Languages Add-on Samle") from sample project for SyntaxEditor. And choose "Open Custom Schema". Open file with the following xsd:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://test.com" targetNamespace="http://test.com" elementFormDefault="qualified" attributeFormDefault="unqualified">
        <xs:element name="Element1">
                <xs:annotation>
                        <xs:documentation>Documentation 1</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                        <xs:sequence>
                                <xs:element ref="Element2"/>
                        </xs:sequence>
                </xs:complexType>
        </xs:element>
        <xs:element name="Element2">
                <xs:annotation>
                        <xs:documentation>Documentation 2</xs:documentation>
                </xs:annotation>
        </xs:element>
</xs:schema>
Then try to enter following xml:

<Element1 xmlns="http://test.com">
    <Element2></Element2>
</Element1>
Now if you'll plase mouse above the "Element1" you will see info with "Documentation 1" comment but for "Element2" this information is absent.

Thanks in advance,
Sergey.

Comments (1)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Thanks Sergey, it seemed to be due to the use of the 'ref'. The bug is now resolved for the next maintenance release.


Actipro Software Support

The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.