jdom关于xsl:number的bug?
xml文档:
<?xml version="1.0"?>
<a>
<b>
<c>
<b/>
</c>
</b>
</a>
stylesheet:
<?xml version="1.0"?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="a">
<xsl:apply-templates/><br/>
</xsl:template>
<xsl:template match="a/b">
<xsl:number format="1.1"/>b<br/>
<ul><xsl:apply-templates/></ul>
</xsl:template>
<xsl:template match="c">
<xsl:number format="1.1"/>c<br/>
<ul><xsl:apply-templates/></ul>
</xsl:template>
<xsl:template match="c/b">
<xsl:number format="1.1"/>b<br/>
<ul><xsl:apply-templates/></ul>
</xsl:template>
</xsl:stylesheet>
我希望解析出来的结果如下
1b
1c
1b
但是我用jdom读入xsl解析xml,成了这样子:
1b
1c
2b
如果在xml中指定xsl,用ie显示又是正常的
有谁知道这个bug到底发生在什么地方么?我看jdom的代码,有import javax.xml.transform.*;
但是我现在找不到这个的源码,有谁知道到哪里去找这个源码么?
还有,有没有什么办法避开这个bug?
谢谢了!