我有一个XMLXSLT的,每个问题
<Root>
<Parent>
<Child1>A</Child1>
<Child2>B</Child2>
<Child1>X</Child1>
<Child2>Y</Child2>
</Parent>
</Root>
CHILD2总是将与child1。我需要知道如何循环使用xsl:foreach
并创建XML输出示例。
<TransformedXML>
<Child attribute1="A" attribute2="B"/>
<Child attribute1="X" attribute2="Y"/>
</TransformedXML>
我的问题是我如何在XSLT中循环考虑Child2节点总是遵循Child1?
好问题(+1)。看到我的答案是一个简短而有效的解决方案。 – 2010-09-02 00:52:23