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
Post a Comment