在运行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>你能告诉我这里我做错了什么吗?为什么这行被分成了多行?
向Rajesh致以最好的问候
发布于 2014-02-26 21:00:28
如果您的XSLT处理程序是Saxon9,那么它有一个序列化选项http://www.saxonica.com/documentation/html/extensions/output-extras/line-length.html,您可以设置它来定义在新行上放置属性的行长。因为你不想换行符,所以我会使用一个非常高的值,例如
<xsl:output xmlns:saxon="http://saxon.sf.net/" saxon:line-length="5000"/>https://stackoverflow.com/questions/22041108
复制相似问题