Specify root element on Content Complete with XSD

Having trouble installing Oxygen? Got a bug to report? Post it all here.
bbruyn
Posts: 1
Joined: Tue Nov 10, 2009 9:58 pm

Specify root element on Content Complete with XSD

Post by bbruyn »

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
sorin_ristache
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
Post Reply