Page 1 of 1
auto completion on own xslt ext (elem+function) library
Posted: Thu May 12, 2005 4:56 pm
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
Posted: Thu May 12, 2005 5:20 pm
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
Posted: Thu May 12, 2005 6:46 pm
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
Posted: Thu May 12, 2005 9:55 pm
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
Posted: Fri May 13, 2005 10:18 am
by wimbo
George,
I got it working

.
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