Page 1 of 1

Specify root element on Content Complete with XSD

Posted: Tue Nov 10, 2009 10:11 pm
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

Re: Specify root element on Content Complete with XSD

Posted: Wed Nov 11, 2009 11:18 am
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