Page 1 of 1

XPath Content Assistant for a generic XML file

Posted: Mon Nov 02, 2009 7:11 pm
by bisiac74
Hi,
I write a lot of documents using a "meta-language" based on XSL. Basically there is another XSL document transforming my documents into XSL documents.
Many elements have an attribute "select" accepting XPath expressions. I'd like to use Oxygen xpath content assistant for both XSL elements and "my" elements.
For now I tried by defining a new type of document, associating it to the XSL editor and assigning xsl namespace url to all the namespaces I'm using. It works but it's not the best solution around...
And I also want to add my xalan extension functions to the xpath expressions so I guess I can't change the namespace urls.
Is there a way to customize this powerful editor and adapt it to my needs?

Re: XPath Content Assistant for a generic XML file

Posted: Tue Nov 03, 2009 5:39 pm
by sorin_ristache
Hello,

The XPath content completion is available only in attributes of XSLT elements, that is only in attributes of elements from the XSLT namespace.

What elements and attributes do you want to see in content completion window for the select attribute of your elements from non XSLT namespace: the elements and attributes of the current XML file? Do you want to insert in your select attribute an XPath expression based on the structure of the edited XML file?


Regards,
Sorin