读书人

关键字 xsl:choose 可能不包含 PCDATA

发布时间: 2012-03-20 14:01:10 作者: rapoo

关键字 xsl:choose 可能不包含 PCDATA 节点。
<script language="javascript">document.write('<xsl:choose>');
document.write('<xsl:when test="@SUBSCRIBE[.='true']">');
document.write('<xsl:element name="input">
<xsl:attribute name="name">radio_<xsl:value-of select="@ID"/></xsl:attribute>
<xsl:attribute name="type">radio</xsl:attribute>
<xsl:attribute name="value">radio_<xsl:value-of select="@ID"/></xsl:attribute>
<xsl:attribute name="checked">true</xsl:attribute>
</xsl:element>');
document.write('</xsl:when>');
document.write('<xsl:otherwise>');
document.write('<xsl:element name="input">
<xsl:attribute name="name">radio_<xsl:value-of select="@ID"/></xsl:attribute>
<xsl:attribute name="type">radio</xsl:attribute>
<xsl:attribute name="value">radio_<xsl:value-of select="@ID"/></xsl:attribute>
</xsl:element>');
document.write('</xsl:otherwise>');
document.write('</xsl:choose>');
</script>


大哥们,帮忙看看,为什么报 “关键字 xsl:choose 可能不包含 PCDATA 节点。”这个错误,在线等!!!!

[解决办法]
是输出XSL吗?把生成XSL发出来看看。

读书人网 >XML SOAP

热点推荐