小编use*_*380的帖子

如何获取当前节点的父节点名称?

获取当前节点的父节点名称的正确语法是什么?我知道这是关于AxisName的父级,但是什么是正确的语法?例如以下xml

<netcdf xmlns="http://www.unidata.ucar.edu/namespaces/netcdf/ncml-2.2" location="file:/dev/null" iosp="lasp.tss.iosp.ValueGeneratorIOSP" start="0" increment="1">
    <attribute name="title" value="Vector time series"/>
    <dimension name="time" length="100"/>
    <variable name="time" shape="time" type="double">
        <attribute name="units" type="String" value="seconds since 1970-01-01T00:00"/>
    </variable>
    <group name="Vector" tsdsType="Structure" shape="time">
        <variable name="x" shape="time" type="double"/>
        <variable name="y" shape="time" type="double"/>
        <variable name="z" shape="time" type="double"/>
    </group>
</netcdf>
Run Code Online (Sandbox Code Playgroud)

对于元素变量,我应该得到netcdf或group.提前致谢.

xslt xpath netcdf ncml

18
推荐指数
2
解决办法
4万
查看次数

如何在xquery中迭代tokenize结果

在xquery中,我有一个未知的长度字符串str ="/ a/b/c",我可以通过tokenize(str,'/')拆分,但是在tokenize结果中基于字符串自动遍历所有元素的语法是什么长度?

例如/ a/b/c将是abc而/ a/b/c/d将是abcd等等.

xquery

3
推荐指数
1
解决办法
6272
查看次数

标签 统计

ncml ×1

netcdf ×1

xpath ×1

xquery ×1

xslt ×1