xslt - How to locate XML data between nodes by XSL -
i new xml , xsl, sorry ask silly question. how locate data 'a' using xsl.
<a> <b>b</b> <c>c</c> <d>d</d> <e>e</e> </a>
i have searched answers , learned locate b, c, d, e using xpath. when comes data a, failed. tried use path displayed data including b c d e. help.
several possibilities:
/a/text()
this selects child text nodes of<a>
/a/text()[not(normalize-space() = '')]
this selects non-empty text children of<a>
/a/text()[3]
this selects'\n a\n '
node example specifically (note there whitespace-only text nodes count well!)/a/c/following-sibling::text()[1]
this selects'\n a\n'
node example specifically//text()[following-sibling::* or preceding-sibling::*]
this selects text nodes have element siblings (i.e. mixed content)
depends on how @ it.
Comments
Post a Comment