XSL-T sorting

webmasterbeta

New Member
I am just curious, I want to be able to sort my page in different ways. <!-- m --><a class="postlink" href="http://www.jojowebdesign.com/xmldata/skills-xml.asp">http://www.jojowebdesign.com/xmldata/skills-xml.asp</a><!-- m -->

I want to do it the *right way* though. In this case, my tech skills are actually stored in an xml file (database).

So I cannot re-sort with anything but XSL-T, I know it is not as fast as SP's etc.

My question is, can I use the same XSL-T to code the various re-sorting that I want to accomplish? XSL-T:
<!-- m --><a class="postlink" href="http://www.jojowebdesign.com/xslt/technology.xsl">http://www.jojowebdesign.com/xslt/technology.xsl</a><!-- m -->

Or should I create a NEW xsl page for every different sort I want to do?

Or a combination of asp and xsl?

Here is where I invoke the xml/xsl if it helps:
<ul>
<%
Dim xslStyleFile
Set xmlDoc = Server.CreateObject("MSXML2.DOMDocument")
Set xslStyleFile = Server.CreateObject("MSXML2.DOMDocument")
xslStyleFile.setProperty "SelectionLanguage", "XPath"
xmlDoc.async = False : xslStyleFile.async = False
xmlDoc.load Server.MapPath("/xmldata/technology.xml")
xslStyleFile.load Server.MapPath("/xslt/technology.xsl")
Response.Write xmlDoc.TransformNode(xslStyleFile)
Set xmlDoc = Nothing
Set xslStyleFile = Nothing
%>
</ul>
 
Back
Top