<段落 类型="普通">
<文本>"Dublin officially twinned with Beijing" proclaimed The Irish Times last weekend, as the city's Lord Mayor </文本>
<B>Gerry Breen</B>
<文本> swept through Beijing to sign a sister cities' agreement between the two capitals.</文本>
</段落>
<段落 类型="普通">
<B>BEIJING—</B>
<文本>Two Chinese business tycoons who attended previous Warren Buffett auction lunches called the experience informative and inspiring, according to earlier media reports.</文本>
</段落> xslt如何解析<段落>元素下子的先后顺序,如何判断当前是<文本>或者是<B>等等!不甚感激!
<文本>"Dublin officially twinned with Beijing" proclaimed The Irish Times last weekend, as the city's Lord Mayor </文本>
<B>Gerry Breen</B>
<文本> swept through Beijing to sign a sister cities' agreement between the two capitals.</文本>
</段落>
<段落 类型="普通">
<B>BEIJING—</B>
<文本>Two Chinese business tycoons who attended previous Warren Buffett auction lunches called the experience informative and inspiring, according to earlier media reports.</文本>
</段落> xslt如何解析<段落>元素下子的先后顺序,如何判断当前是<文本>或者是<B>等等!不甚感激!
解决方案 »
- Dispatcher initialization failed 错误
- http://localhost:8080/myapp/index.jsp出错了
- MySQL的事务到底有没有提交?
- 高分求助怎么将a.js中的变量abc赋值给b.jsp中的变量????
- 哪位高人能给一个JAVA写的发送邮件的程序.高分求教
- 分页程序报错 For input string: "undefined"
- 100分!applet录音机的实现!
- [200分问题] Servlet处理中文问题
- 救急!启动时装载servlet!一定给分
- 在jsp中要选择oralce数据库中的,记录数最大的语句怎么写?记录数是我输入的
- 手机BS模式地图有没有啊?
- 强人解答 迭代器问题
//B 匹配B元素
//文本 匹配所有“文本”元素
//段落/* 匹配B或“文本”元素,这些元素按原来次序依次排列
<xsl:choose>
<xsl:when test="B"><!-- 判断段落刚开始是<B></B>标签-->
<p>   
<b><xsl:value-of select="B[1]"/></b>
<xsl:value-of select="文本[1]"/>
</p>
</xsl:when>
<xsl:when test="文本"><!-- 判断段落刚开始是<文本></文本>标签-->
<p>   
<xsl:value-of select="文本[1]"/>
</p>
</xsl:when>
<xsl:when test="I"><!-- 判断段落刚开始是<I></I>标签-->
<p>   
<i><xsl:value-of select="I[1]"/></i>
</p>
</xsl:when>