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

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -