Content Completion

Having trouble installing Oxygen? Got a bug to report? Post it all here.
blcaya
Posts: 7
Joined: Thu Aug 11, 2005 9:08 pm

Content Completion

Post by blcaya »

Hi,

I have a problem with the Content Completion not showing up when I am entering elements/tags into a document (xsl or fo). I have tested this on two different user's machines, one works, the other does not. When I turn off Content Completion and hit CTRL/Space I get a list of attributes on both machines however the one not working gives me a very strange list of "everything" under the sun in the document. I am using version 7.1 of Oxygen with version 1.5 of the JVM and Apache FOP 0.20.5 on both machines. Any suggestions?

As a second question, we use Oracle's XSQL frameworks. Is there a way to setup our own custom "Content Completion" (besides doing it in a Code Template)?

Thanks in advance!!!!!
-Brian
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

When you edit an XSLT file for example and you hit Ctrl + Space the content completion window contains the names of XSLT elements that are allowed to be inserted at the cursor location. If you specified a schema for the result of the XSLT transformation which applies that XSLT stylesheet in Options -> Preferences -> Editor / Content Completion / XSL/XPath the window lists also the elements defined in that schema. If you get different lists in the content completion window in the same location of the same file on different machines probably the result schema is specified in Preferences only on one machine.

The only way that you can customize the list displayed in the content completion window in the XSLT editor is by specifying the URL of a schema for the document resulted from applying that XSLT stylesheet. It can be a DTD, XML Schema or Relax NG schema and it must be set in Options -> Preferences -> Editor / Content Completion / XSL/XPath. This enables the content completion to also insert quickly in the editor panel elements of the result schema while the XSLT stylesheet is edited, in the same way as for XSLT elements.

Regards,
Sorin
Post Reply