我在運行xslt2.0轉換後得到以下輸出。XSLT2.0轉換生成多行標籤
<TAG mode="w"
name="x"
references="x"
size="5005"
type="string"/>
我想這是傾倒在一條線本身。它打破了線
<TAG mode="w" name="x" references="x" size="5005" type="string"/>
代碼是:
<xsl:output method="xml" encoding="UTF-8" byte-order-mark="no" indent="yes"/>
<xsl:template name="agt:var1_function1">
<xsl:param name="par0" as="node()"/>
<TAG>
<xsl:sequence select="($par0/@node(), $par0/node())"/>
</TAG>
</xsl:template>
能否請你建議我什麼,我做錯了什麼,爲什麼這條線被破成多行?
問候 拉傑什
你忘了發佈錯誤的輸出。 – Oscar
謝謝奧斯卡獎。縮進是錯誤的。 – user3355730
您的問題是重複的http://stackoverflow.com/questions/1922882/xsl-remove-a-line-break-from-text – Oscar