【发布时间】:2015-08-10 16:38:52
【问题描述】:
我有以下 xml,我需要提取节点“合理”之外的文本。
<html><head><title>test</title></head><body><p><justificado><negrita>TEST.- </negrita>Hello people <negrita>it is</negrita><negrita>,</negrita> fa test ./justificado></p></body></html>
我尝试了以下但没有成功
<xsl:template match="not (*/negrita[preceding-sibling::*[1]self::negrita]])">test-123</xsl:template>
【问题讨论】:
-
标签“justificado”似乎没有正确关闭(./justificado)
-
感谢您的回复,但我不想丢失粗体标签中的 q。帮我!!请
-
@user1742637 stackoverflow.com/help/someone-answers