Specify root element on Content Complete with XSD
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 1
- Joined: Tue Nov 10, 2009 9:58 pm
Specify root element on Content Complete with XSD
Writing an XSL and trying to use an XSD to provide structure of the target document to Content Completion via configuration at Options → Preferences+Editor+Content Completion+XSL.
Activating content complete brings up a list of elements, but doesn't seem to have any notion of the XSD's structure. i.e., every element is available from anywhere in the document. It's basically the same problem you have when trying to create a new XML document from a schema - you need to select the root element for it to be right.
Is there any such option on the content assist? Note that I'm using v9.3, but would consider upgrading if this has been addressed in a later release.
Regards,
Bill
Activating content complete brings up a list of elements, but doesn't seem to have any notion of the XSD's structure. i.e., every element is available from anywhere in the document. It's basically the same problem you have when trying to create a new XML document from a schema - you need to select the root element for it to be right.
Is there any such option on the content assist? Note that I'm using v9.3, but would consider upgrading if this has been addressed in a later release.
Regards,
Bill
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Specify root element on Content Complete with XSD
Post by sorin_ristache »
Hello,
For XSLT editing the root element of the result XML document cannot be set for the content completion. The previous elements from the result XML Schema are not tracked so content completion cannot filter the elements that are declared in the XML Schema and that are valid in the context of the previous elements. Probably a better solution will be visual editing of the XSLT stylesheet when the XML Schema of the input XML and the result XML schema are specified but a visual editor for XSLT stylesheet is not yet available.
Regards,
Sorin
For XSLT editing the root element of the result XML document cannot be set for the content completion. The previous elements from the result XML Schema are not tracked so content completion cannot filter the elements that are declared in the XML Schema and that are valid in the context of the previous elements. Probably a better solution will be visual editing of the XSLT stylesheet when the XML Schema of the input XML and the result XML schema are specified but a visual editor for XSLT stylesheet is not yet available.
Regards,
Sorin
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