은과 같이 소스 문서를 감안할 때 :XSLT를 사용하면 일련의 요소를 단일 목록으로 변환 할 수 있습니까?
<A>
<B>
<C>item1</C>
</B>
<B>
<C>item2</C>
</B>
<B>
<C>item3</C>
</B>
</A>
이 같은 제품 일에 사용할 수 있습니다 무엇 XSLT : 내가 함께 시트를 시도
<A>
<B>
<C>item1</C>
<C>item2</C>
<C>item3</C>
</B>
</A>
...
<xsl:template match="B">
<xsl:choose>
<xsl:when test="count(preceding-sibling::B)=0">
<B>
<xsl:apply-templates select="./C"/>
<xsl:apply-templates select="following-sibling::B"/>
</B>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="./C"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
그러나 나는 점점 ...
<A>
<B>
<C>item1</C>
<C>item2</C>
<C>item3</C>
</B>
<C>item2</C>
<C>item3</C>
</A>
두 번째 질문 : XSLT를 디버깅하는 데 어려움이 있습니다. 힌트?
안녕하세요 저는 이번에 추가 템플릿을 가져 왔습니다 ... 마지막 게시물에 D : –