XML 文档:
<?xml version="1.0" encoding="UTF-8"?>
<ProcessData>
<SOAPAction>urn:echo</SOAPAction>
<Content_Type>text/xml;charset=UTF-8</Content_Type>
<uname>sarah_brcm</uname>
<pwd>BRCM_UVLwNhjrA5fbgqkUNdxQXMfcCDJ</pwd>
</ProcessData>
XSLT:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<xsl:copy-of select="ProcessData/SOAPAction/text()"/>
<br/>
<xsl:copy-of select="ProcessData/Content_Type/text()"/>
</xsl:template>
</xsl:stylesheet>
但输出不包含前两行之间的断线。