如何将xbl向导组件集成到properties-local.xml或属性form-runner.xml中?

问题描述:

我想添加一个CSS类 '参观' 到向导的TOC,所以我修改wizard.xbl这种表达如何将xbl向导组件集成到properties-local.xml或属性form-runner.xml中?

<xh:li class="{{ 
    'has-errors' [$top-level-section-has-any-errors], 
    'invalid' [$top-level-section-has-visible-errors], 
    'incomplete' [$top-level-section-incomplete], 
    'not-started'[$top-level-section-not-started], 

    'disabled' [$top-level-section-disabled], 
    'active'  [$top-level-section-active], 
    'visited'  [$top-level-section-visited], 

}}"> 

wizard.css

.orbeon .xbl-fr-wizard .fr-wizard-toc .nav .visited> span > a { 
    color: #ffffff; 
    background-color: #ffaa48; 
} 

所以我可以在哪里声明目录/xbl /向导属性文件和哪个属性我会用?

您可以将修改后的文件下:

WEB-INF/resources/xbl/orbeon/wizard/wizard.xbl 

但要非常小心:如果升级Orbeon形式,你将不得不合并与wizard.xbl较新版本的变化。