Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sorting XSLTForms排序实例_Sorting_Exist Db_Xsltforms - Fatal编程技术网

Sorting 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="

我在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="" 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()