Jump to content

Motxslt

Members
  • Posts

    1
  • Joined

  • Last visited

Motxslt's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Suppose you have the following: <System> <system type="Main"> <properties> <prop name="Color" value="Green" /> <prop name="Purpose" value="Relaxing" /> </properties> <system type="Secondary"> <properties> <prop name="Texture" value="Smooth" /> <prop name="Smell" value="Flowery" /> <prop name="Aesthetics" value="Fair" /> </properties> </system> </system> If there is a scenario where you need to count all that are Color="green" and Texture="Smooth". Note the elements are on different levels. What is the format? How do you obtain elements located in different levels? <xsl:variable name="GreenSmoothFood"select="count(//system[@type=Main]/properties/prop[@name=Color' and @value='Green]/system[@type=PortableConfiguration]/properties[prop[@name=Texture' and @value='Smooth]])"/>Thanks,
×
×
  • Create New...