返回首页

您好,

我使用的XSL样式表来转换XML文件(一个iPod库的plist我的应用程序可以处理XML代码)。我已经成功地应用在VB.NET的转换使用一个XML文件的Xsl.XslCompiledTransform对象,这个结果我可以成功地使用我的应用程序。

这是我的问题,所有的值返回到新的XML文件的字符串值,我需要的数字是数字,字符串是字符串。我好好的享受我的XSLT文件应用的测试值,从而:

<xsl:choose>

  <xsl:when test="number(following-sibling::node()[1]) = following-sibling::node()[1]">

    <xsl:value-of select="number(following-sibling::node()[1])"/>

  </xsl:when>

  <xsl:otherwise>

    <xsl:value-of select="following-sibling::node()[1]"/>

  </xsl:otherwise>

</xsl:choose>
成功地发现了数格式化值,但生成的XML文件仍然返回所有字符串值。没有任何人有任何指针?我几乎没有XML方面的知识。

感谢在前进。

回答

评论会员: 时间:2