English 中文(简体)
XSLT 2.0 - 如何改变比较测试的道路
原标题:XSLT 2.0 - How can you change the path for comparison tests

现在,我能够抓捕某些“ro”元素的直系儿童,这些元素有含有 da子的名字。 例如,这些直系儿童的名字是A4-1、B3-2和C4-3。

我愿按照以下代谢编码做一些事情:

for each immediate child
    print out it s child element figtitle/autonum/@ID

如果不把道路推向扼杀,是否有办法做这样的事情? 每当我把眼前的儿童价值观归结到其他道路上的时候,我都会得到扼杀,因此,我可以把这种价值观归为另一种价值,例如:

<xsl:if test="*[ yes  = (PATH)]">
    <xsl:value-of select="PATH[@ID =  yes ]"/> 
</xsl:if>

在道路上:

root/A4-1/figtitle/autonum/@ID
root/B3-2/figtitle/autonum/@ID
root/C4-3/figtitle/autonum/@ID

最佳回答

www.un.org/Depts/DGACM/index_spanish.htm 您需要的表述是:

/root/*/figtitle/autonum/@ID

<>指

选择所有<条码>ID 任何<条码>的属性 构成下列要素的儿童:<代码>fig entitled 要素,即最高元素的孙子:root

如果内容<代码>root 如果该表述与<代码>root<>/code>的母体一起评估,作为背景标的,则表述应为:

root/*/figtitle/autonum/@ID

<>Explanation:

表达:

someElement/*

选择所有属于儿童的内容,即:< 编码>>>>>。 这是对表达方式进行评价的背景 no子(目前的 no子)。

因此,无需明确列出<编码>> > 某些Element的儿童姓名。

<>Update: 检察官办公室在一份评论中澄清说,她只需要选择那些姓名包括姓氏、号码和信件的儿童root

www.un.org/Depts/DGACM/index_spanish.htm The XPath expression:

root/*[contains(name(), - ) and translate(name(), $vAlphaNum, ) = ] /figtitle/autonum/@ID

确切地选择所有这些要素。

在此,必须界定可变的<代码>vAlphaNum,以包含所有低级和上级个案信和0-9位数。

在XSLT 2.0中,可以使用<代码>matches(功能,并作适当的定期表述。

问题回答

暂无回答




相关问题
Find the closest time from a list of times

So, here s the scenario. I have a file with a created time, and I want to choose a time from a list of times that that file s created time is closest or equal too...what would be the best way to ...

PHP Comparison Operators and Data Types

I m currently working through O Reilly s "Programming PHP" and have come across this table titled "Type of comparison performed by the comparison operators": First Operand | Second ...

Loop Until Condition Reached, iPhone

I have a problem here... After a button is pressed I want a loop to run until a condition is reached: - (IBAction)buttonclick1 ... if ((value2ForIf - valueForIf) >= 3) { ... I would like a loop ...

nuSoap or Zend Soap? [closed]

I would like to know the differences between nusoap and ZendSoap, which is the best? what benefits and disadvantages of each? Anyone who has used both technologies could make this comparison? Thank ...

Logic for a file compare

I trying to write a programm for file compare. For example: file1 1 2 3 4 5 file2 1 2 @ 3 4 5 If I do it line by line, I get: 1 == 1; 2 == 2; 3 != @; 4 != 3; 5 != 4; != 5; But, the truth is ...

热门标签