Plugin for Validate Orbeon Forms and/(or) XPath

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Plugin for Validate Orbeon Forms and/(or) XPath

Eswar thammana
Hi,

Am new to Orbeon Forms, looking for a plugin to validate the namespaces provided by the Orbeon Forms.

and also which validates Orboen Forms(
1. Highlighting or warning misuse of 'eq' or '=' or 'is',
ex:  <xf:action if="element1 eq [a,b]"></xf;action> ... etc
2. warning for 'while' instead of 'iterate' or vice versa,
ex: <xf:action while="element1 &lt;= 10">
           <xf:setvalue ref="element1" value=".+1"/>
      </xf:action> 
3. For 'setvalue' condition is written in action block instead inside xf:setvalue,
ex:   <xf:action if="element1="'true'">
           <xf:setvalue ref="element1" value="you_got_it"/>
      </xf:action> 
4. appropriate usage of xs:integer and xs:decimal 
ex: desired output is integer but used xs:decimal, prompte "castable as" 

so on...). 

Looking for a plugin can do a basic code review and provide valid suggestions

Please suggest me, if possible to create our own custom plugin. Where to start?

Regards eswar thammana

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Plugin for Validate Orbeon Forms and/(or) XPath

Alessandro  Vernet
Administrator
Hi Eswar,

I think you'll need to create your own "plugin". It seems you want to
provide a  linter <https://en.wikipedia.org/wiki/Lint_(software)>   for
XPath expressions, so it will most likely be easier for you to start from
the AST created by an existing XPath parser, like Saxon.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet