[Home] [By Thread] [By Date] [Recent Entries]

Subject: Trying to figure out the child::item[position()=1] syntax
From: "Austin, Darrel" <Darrel.Austin@xxxxxxxxxxxxxxxxxx>
Date: Mon, 10 Jul 2006 15:51:38 -0500
I use XSL sporadically and, as such, haven't quite figured out all the
syntax yet.

Here's a snippet of my XML:

<menuItems>
  <menuItem>
     <pageID>1</pageID>
  </menuItem>
  <menuItem>
     <pageID>2</pageID>
  </menuItem>
</menuItems>

In my XSL, I want to determine if the 'pageID' value of the first
menuItem (and ONLY the first menuItem) matches a particular value that I
am passing into the XSL file.

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member