错误: 关 无法使用提供的XML / XSL输入生成XML文档。 org.xml.sax.SAXParseException; lineNumber:1; columnNumber:1;序言中不允许包含内容。
这是我的XML:
<inv>
<ivd>
<net_ivd_key>9809AF1F-E855-429D-984C-A91EE4955C0E</net_ivd_key>
<net_ivd_price>0.00</net_ivd_price>
<net_ivd_qty>1.00</net_ivd_qty>
<net_ivd_amount_cp>0.00</net_ivd_amount_cp>
<net_prc_display_name>Physician Relations Programs in Hospitals 2014: A SHSMD Benchmarking Study</net_prc_display_name>
<net_prc_code>309WB0415</net_prc_code>
<net_linebalance>0.0000</net_linebalance>
<net_fws_ptp_type>64B77FB4-DA34-4034-ADA8-F1DA796D8720</net_fws_ptp_type>
<ivd_prc_prd_key>D0F79376-0E5E-4BE3-8061-7F47103D3403</ivd_prc_prd_key>
</ivd>
<ivd>
<net_ivd_price>0.00</net_ivd_price>
<net_ivd_qty>0.00</net_ivd_qty>
<net_ivd_amount_cp>0.00</net_ivd_amount_cp>
<ivd_order>99999</ivd_order>
<net_prc_code>Tax</net_prc_code>
<net_linebalance>0.0000</net_linebalance>
<net_fws_ptp_type>F53B02CB-7623-49B4-A59A-55B0547F291C</net_fws_ptp_type>
</ivd>
</inv>
这是错误在第1行的第1列。我不确定出什么问题了,我在某处或某处有错字吗?
XSL代码:
{BeginXmlBuilderXml}
<xml>
exec client_aha_eweb_order_detail @inv_code = {inv_code}
</xml>
{EndXmlBuilderXml}
{BeginXmlBuilderParams}inv_code={request:inv_code}{EndXmlBuilderParams}
{BeginPagerProperties}20{EndPagerProperties} {BeginPagerPropertiesAlphaElement}Association{EndPagerPropertiesAlphaElement}
{BeginXsl}
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="pagerNumeric" />
<xsl:output method="html" />
<xsl:template match="/inv">
<xsl:value-of select="$pagerNumeric" disable-output-escaping="yes"/>
<div class="orderhistory-container">
<h3>Order Detail - {inv_code}</h3>
<div class="row well-mini">
<div class="orderhistory-subcontainer4"><b>Item</b></div>
<div class="orderhistory-subcontainer3"><b>Price</b></div>
<div class="orderhistory-subcontainer3"><b>Qty</b></div>
<div class="orderhistory-subcontainer3"><b>Amt</b></div>
<div class="orderhistory-subcontainer3"><b>Status</b></div>
<div class="orderhistory-subcontainer3"><b>Tracking #</b></div>
</div>
<xsl:apply-templates select="ivd" />
</div>
<xsl:if test="count(inv_code)=0"> <p>You do not currently have a membership in this organization. Please click <a href="dynamicpage.aspx?webcode=membershipprd">here</a> to return to the membership page and then select a membership category to join.</p></xsl:if>
</xsl:template>
<xsl:template match="ivd">
<div>
<div class="orderhistory-subcontainer4"><xsl:value-of select="net_prc_display_name" /></div>
<div class="orderhistory-subcontainer3"><xsl:value-of select="net_ivd_price" /></div>
<div class="orderhistory-subcontainer3"><xsl:value-of select="net_ivd_qty" /></div>
<div class="orderhistory-subcontainer3"><xsl:value-of select="net_ivd_amount_cp" /></div>
<div class="orderhistory-subcontainer3"><xsl:value-of select="status" /></div>
<div class="orderhistory-subcontainer3"><xsl:value-of select="net_tracking_number" /></div>
</div>
</xsl:template>
</xsl:stylesheet>
{EndXsl}