현재 노드의 상위 노드 이름을 가져 오는 올바른 구문은 무엇입니까? AxisName 부모에 관한 것이지만 올바른 구문은 무엇입니까? 내가 netCDF의 또는 그룹을 얻어야한다 요소 변수에 대한 다음 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>
의 예를 들어 . 미리 감사드립니다.
좋은 질문입니다. +1. 현재 노드의 부모 이름으로 평가되는 가능한 가장 짧은 XPath 식에 대한 내 대답을 참조하십시오. 또한 왜 부모가 이름을 갖고 있지 않은지에 대한 설명. 마지막으로, 이것은 실제로 Xpath 질문이 아니라 XSLT 질문입니다. –