Sorting XSLTForms排序实例
我在existdb服务器上使用XSLTforms,并尝试对实例进行排序。以下是该模型的一个示例:Sorting XSLTForms排序实例,sorting,exist-db,xsltforms,Sorting,Exist Db,Xsltforms,我在existdb服务器上使用XSLTforms,并尝试对实例进行排序。以下是该模型的一个示例: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xf="http://www.w3.org/2002/xforms"> <head> <xf:model> <xf:instance xmlns="
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xf="http://www.w3.org/2002/xforms">
<head>
<xf:model>
<xf:instance xmlns="" id="default">
<data>
<x>
<a>B</a>
<a>C</a>
<a>A</a>
</x>
</data>
</xf:instance>
</xf:model>
</head>
我是xforms新手,我不明白为什么这些示例不起作用,所以如果有人能给我一个工作示例,或者给我指出在xsltforms中排序数据的正确方法,我将非常感激
提前谢谢你 不幸的是,XForms规范中没有关于数据排序的内容,这些使用XSLT作为解决方法的示例实际上在JSON API级别上并不完全受XSLTForms支持
要使用XSLTForms运行此功能,应替换:
instanceElement.parentNode.rebuild();
instanceElement.parentNode.Recomculate();
instanceElement.parentNode.revalidate();
instanceElement.parentNode.refresh()代码>不幸的是,XForms规范中没有关于数据排序的内容,这些使用XSLT作为解决方法的示例实际上并不完全受JSON API级别的XSLTForms支持
要使用XSLTForms运行此功能,应替换:
instanceElement.parentNode.rebuild();
instanceElement.parentNode.Recomculate();
instanceElement.parentNode.revalidate();
instanceElement.parentNode.refresh()代码>