XSLT is a complex language with lots of bell and whistles—and just as many pitfalls. It's all too easy to head ambitiously into Code view and, with just a few keystrokes, completely break your XSLT style sheet. But since Dreamweaver's XSLT tools take you only so far, you'll undoubtedly find yourself wanting to dip into the code. Here are a couple of examples to help your explorations go a little more smoothly.
The Repeat Region feature normally works by spitting out data that it retrieves from an XML document in the order it appears in the XML file. But what if you want that information sorted in a particular way—employees listed in alphabetical order, for example. Dreamweaver doesn't have a visual tool to let you accomplish this common goal. Fortunately, adding the code yourself is pretty easy:
Click inside a repeat region and then click the "Code" or "Split" buttons in the document window's toolbar.
Alternatively you can choose View → Code or View → Code and Design. Doing so drops you into the scary world of XSLT code; don't look too hard—you might go blind.
Locate the beginning of the repeat region.
What you're looking for is something like this: <xsl:for-each select="company-Info/employeeList/employee">, where the stuff in quotes after "select" is the XPath expression pointing to the repeating tag. You need to add your new code directly after this tag.
Click immediately after the closing bracket (>), hit Enter, and then type ...