Page 1 of 1

Customize autocomplete for XProc?

Posted: Wed Aug 05, 2015 11:01 am
by phamdinhnam3
I'm still learning XProc and I love it. But it is definitely very different from anything I've worked with before, so I wanted to figure out a way to tell me what all my options are for each step.

Is it possible in oXygen to set a preference that, when using autocomplete, automatically populates all the required attributes/children of the current element? (What about optional attributes/children?)

Re: Customize autocomplete for XProc?

Posted: Thu Aug 06, 2015 3:22 pm
by adrian
Hello,

By default oXygen is already configured (Options > Preferences, Editor > Content Completion) to automatically insert required elements (Add element content) and attributes (Insert the required attributes) when editing. It's also possible to configure it to insert optional elements (Add optional content). These options are generic and apply to all types of XML documents.

Unfortunately there seems to be a problem with the builtin RelaxNG schema used for XProc that prevents this feature from working correctly when editing XProc. I've logged an issue to investigate the problem. We will notify this thread when a bugfix or patch becomes available.

Regards,
Adrian