auto completion on own xslt ext (elem+function) library

Are you missing a feature? Request its implementation here.
wimbo
Posts: 3
Joined: Thu May 12, 2005 4:42 pm

auto completion on own xslt ext (elem+function) library

Post by wimbo »

Hi,

I have my own library of xslt extension elements and functions.
Is there a way to configure oXygen so auto-complete will work on this library?
I saw that XMLspy can do this by reading this info from a DTD file ...

Thanks,

Wim
george
Site Admin
Posts: 2097
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi Wim,

There is something that might work... although it was not desigend for this :).
Oxygen can be configured with a schema (XML Schema, DTD or Relax NG schema) for the result file of the transformation and it will offer in the content completion the elements defined in that schema. You can do that from Options->Preferences -- TagInsight -- XSL page. Eventually you can add in your schema an import to import the actual result schema so you can have both your elements and the result elements presented by oXygen in the content completion.

Best Regards,
George
wimbo
Posts: 3
Joined: Thu May 12, 2005 4:42 pm

Post by wimbo »

Hello George,

thanks for the tip.
So far, it works a bit: only 6 out of the 15 ext elems are loaded for completion.

Do you have any clue how this comes or how to fix?

TIA,

Wim
george
Site Admin
Posts: 2097
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi Wim,

Hmm, it will help if you can make your schema available either here or at support at oxygenxml dot com. A wild guess will be that those 6 elements are defined globally while the other 9 are local elements but that is only a guess...

Best Regards,
George
wimbo
Posts: 3
Joined: Thu May 12, 2005 4:42 pm

Post by wimbo »

George,

I got it working :D .
The problem was that my 6th ext element has an attribute list, and one of the attributes was optional but I left out the default value #IMPLIED. Because of this, the rest of the schema was skipped...
After adding the default value #IMPLIED to all the optional attributes, the auto content completion works just fine.

Thx for your help.

Wim
Post Reply