Can't expand elements inline in schema design view
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- Posts: 2
- Joined: Thu Jun 10, 2010 1:09 pm
Can't expand elements inline in schema design view
Hi all,
I'm a new user of Oxygen. One thing that's confusing me is when I'm viewing a schema in design mode I often can't expand elements inline and I'm not sure why. For example:

Here order:Order is a complex type in the same schema - why can I not expand this inline?
Cheers,
Colin
I'm a new user of Oxygen. One thing that's confusing me is when I'm viewing a schema in design mode I often can't expand elements inline and I'm not sure why. For example:

Here order:Order is a complex type in the same schema - why can I not expand this inline?
Cheers,
Colin
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Can't expand elements inline in schema design view
Hello,
The only situation where this is known to happen is in a schema that uses components from another schema imported indirectly.
e.g.
a imports b imports c
a uses a complex type from c
This type of schema is valid in Oxygen only when the http://apache.org/xml/features/honour-a ... aLocations XML parser feature is enabled in Options -> Preferences -> XML -> XML Parser.
If you are encountering this issue in a completely different situation then please send a sample of your schema to support@oxygenxml.com for us to analyse.
Regards,
Adrian
The only situation where this is known to happen is in a schema that uses components from another schema imported indirectly.
e.g.
a imports b imports c
a uses a complex type from c
This type of schema is valid in Oxygen only when the http://apache.org/xml/features/honour-a ... aLocations XML parser feature is enabled in Options -> Preferences -> XML -> XML Parser.
If you are encountering this issue in a completely different situation then please send a sample of your schema to support@oxygenxml.com for us to analyse.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Can't expand elements inline in schema design view
Hi,
In case others are wondering about what was happening...
This is indeed a bug in Oxygen's Schema Diagram(Design mode). It only collects namespace prefix declarations from the schema root and the mentioned schema does not declare the 'order' prefix on the root, it is only declared in the schema components that need it.
e.g.
I have added this problem to our issue tracking tool and we will fix it in a future version of Oxygen.
As a workaround for Oxygen the namespace prefix should also be declared on the root element and you will then be able to expand the components from that namespace.
e.g.
Regards,
Adrian
In case others are wondering about what was happening...
This is indeed a bug in Oxygen's Schema Diagram(Design mode). It only collects namespace prefix declarations from the schema root and the mentioned schema does not declare the 'order' prefix on the root, it is only declared in the schema components that need it.
e.g.
Code: Select all
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="PlaceOrderRequest">
<xs:sequence>
<xs:element xmlns:order="http://my.ns" name="order" type="order:Order"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
As a workaround for Oxygen the namespace prefix should also be declared on the root element and you will then be able to expand the components from that namespace.
e.g.
Code: Select all
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:order="http://my.ns">
<xs:complexType name="PlaceOrderRequest">
<xs:sequence>
<xs:element xmlns:order="http://my.ns" name="order" type="order:Order"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 2
- Joined: Thu Nov 30, 2017 5:42 pm
Re: Can't expand elements inline in schema design view
This still appears to be an issue inversion 19.1 - is there any update on a fix?
I am working with schemas and a WSDL that are auto generated from a .NET web service, and these define many prefixes only at the element level. This makes for a lot of refactoring before the models display correctly in design mode.
Richard
I am working with schemas and a WSDL that are auto generated from a .NET web service, and these define many prefixes only at the element level. This makes for a lot of refactoring before the models display correctly in design mode.
Richard
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Can't expand elements inline in schema design view
Hi Richard,
I'm afraid not. This has not been fixed yet, as it seems to be a very rare occurrence. You are the first person to re-encounter this in 7 years.
I gave the issue a nudge and mentioned your comments. For future reference it is issue EXM-17828.
Regards,
Adrian
I'm afraid not. This has not been fixed yet, as it seems to be a very rare occurrence. You are the first person to re-encounter this in 7 years.
I gave the issue a nudge and mentioned your comments. For future reference it is issue EXM-17828.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 2
- Joined: Thu Nov 30, 2017 5:42 pm
Re: Can't expand elements inline in schema design view
Thanks for the update. Just for reference, a colleague uses an Altova alternative product, and that application throws a message about "re-writing the schema" (or some such) and this normalises the model in to one which is more generally accepted across multiple products.
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Can't expand elements inline in schema design view
Thank you for the feedback. I've mentioned your comments on the logged issue.
Regards,
Adrian
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
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