0
我是新來的XSLT,下面是XML輸入XSLT:XML到文本的轉換
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://xyz.com.zr/l8q/12Q/service/">
<soapenv:Header>
<ser:User>
<!-- comment -->
<Username/>
<password/>
</ser:User>
</soapenv:Header>
<soapenv:Body>
<mainTag>
<abc>1596056</abc>
<asdd>12434F</asdd>
<childtag>
<asdf>1233</asdf>
<qwe>567</qwe>
</childtag>
</mainTag>
</soapenv:Body>
</soapenv:Envelope>
以下
時所需的輸出(文本)需要
01|1596056|12434F
02|1233| |567|
在總結
所以,要實現期望的輸出,在以下知道位數的細節
1) how can i make the text output from xslt.
2) how to make/avoid newline (i.e break).
3) how to generate spaces in text.
下面
是邏輯
01 = this is line number in the text (first line)
1596056 = <abc>
12434F = <asdd>
02 = this is line number in the text (second line)
1233 = <asdf>
567 = <qwe>
感謝
開始使用'' –
Pawel
該示例不明確。請解釋這裏需要應用的邏輯。 –
我仍然不知道你的例子中的內容是不變的,這只是一個例子。 –