List enumeration values out of the schema
Are you missing a feature? Request its implementation here.
List enumeration values out of the schema
First of all, fantastic program
It would be nice if for enumeration tags it listed the possible values to choose from, like the way it lists the possible tags.
It would be nice if for enumeration tags it listed the possible values to choose from, like the way it lists the possible tags.
Hi,
Oxygen handles enumerations and presents these values when attribute values are inserted. It follows simple types also on unuions and lists to get the enumeration values. Do you mean something different?
You may consider also useful changing the content completion source from the schema to the document structure and back. To use the document structure use the Learn structure action. This will learn also all attribute values. To go back to the schema driven content completion perform a validation action.
Best Regards,
George
Oxygen handles enumerations and presents these values when attribute values are inserted. It follows simple types also on unuions and lists to get the enumeration values. Do you mean something different?
You may consider also useful changing the content completion source from the schema to the document structure and back. To use the document structure use the Learn structure action. This will learn also all attribute values. To go back to the schema driven content completion perform a validation action.
Best Regards,
George
Hi,
It was included in version 5.1. Try for instance the following schema: test.xsd
with an instance like:
It is true that this does not work if the simple type is anonymous. This problem is already fixed in the current development stream.
Best Regards,
George
It was included in version 5.1. Try for instance the following schema: test.xsd
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="root">
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element ref="test"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="test" type="Test"/>
<xs:simpleType name="Test">
<xs:restriction base="xs:string">
<xs:enumeration value="v1">
<xs:annotation>
<xs:documentation>The first value</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="v2">
<xs:annotation>
<xs:documentation>The second value</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:schema>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="test.xsd" test="v1">
<test></test>
</root>
Best Regards,
George
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service