xsl fo - XPath to only select elements with specific inline elements -


i'm looking expression selects nodes there no text around specific inline element:

<list>     <item> <!-- want node -->         <paragraph>             <link>                 installing driver             </link>         </paragraph>     </item>     <item>         <paragraph>             mixed content example             <link>                 tablet active area             </link>             more content         </paragraph>     </item> </list> 

so, want select items not contain mixed content or paragraphs contain link elements , nothing else.

you can select /list/item[not(paragraph[* , text()[normalize-space()]])] select item elements don't contain paragraph mixed contents (i.e. text nodes , element nodes).


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -