XSLT
XSLT Contents
Summary This XSLT loops sorts a nodeset and identifies any node which matches a parameter value passed to the stylesheet.
This was actually done as a response to a question posed on the XSL-Talk list hosted by TopXML. The original poster wanted to match certain nodes based on a parameter passed to the stylesheet but wasn't getting all the required nodes due to surplus whitespace in the node value. The XSLT is particular to the attached source document but may be easily changed to suit any source document.
The key to it is the normalize-space() function which strips leading and trailing whitespace from a string. This ensures that the strings 'X' and 'X ' both get matched. The xsl:sort element sorts the matched nodes according to the Id element value in ascending order.
Partners
Dream.In.Code dotNet Slackers dotNet Spider Your HTML Source VisualBuilder.com DevGuru Planet Source Code ZVON.ORG Web Design ASPAlliance XML Pitstop Scripts
The Spot 4 SAP Bitshop Web Hosting