use*_*380 18 xslt xpath netcdf ncml
获取当前节点的父节点名称的正确语法是什么?我知道这是关于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.提前致谢.
Dim*_*hev 33
用途:
name(..)
Run Code Online (Sandbox Code Playgroud)
的..
缩写,是一种简写parent::node()
.
请注意:并非每个父母都有一个名字.例如,文档node(/
)是文档顶部元素(/*
)的父级,没有名称.