xml - how to display a parent of an element only if it contains an attribute -


Trying to solve a puzzle, I want to display only a grand parent of an element If there is an attribute (no attribute) in it thanks in advance! I have the following code:

  & lt; Xsl: when test = "content / track" & gt; & Lt; Xsl: each selection = "content / track" & gt; & Lt; Div class = "container_orange" & gt; & Lt; Xsl: Select Value = ". / Text ()" Disable-output-escaping = "yes" /> Is & lt; B & gt; Current & lt; / B & gt; And & lt; B & gt; & Lt; Xsl: Select the value = "name (../..)"/& gt; & Lt; / B & gt; & Lt ;! - Shows only the name of the node which is a grandparent, but how does one attribute position? - & gt; & Lt; / Div & gt; & Lt; / XSL: for-each & gt; & Lt; / XSL: When & gt;    

Positions are called predictions and they are known in square brackets so that ../ . [@ *] selects grandparents who have any specialty.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

c# - Create dynamic LINQ query expression at runtime which translates into a parameterized SQL query for nullable types -

cmake - cpack generates RPMs with %files entries that conflict with the RPM spec. How to fix? -