i have been using basic xml on my navigation bar system...i have a couple of different navigation bars...the xml file for the navigation bar is selected through an asp script then parsed with a stylesheet throught the asp. i want to convert my entire site to xml. how can i write a script in the main xsl to choose which navbar to include? it uses request.querystring, session variables, and a few other basic vbscript commands. can i combine xsl:script and xsl:include and if so, how would i go about doing that?
here's basically what i have now
asp file for page i want to display
...<td><!--#include virtual="/Menu/navbar.asp"--></td>...
navbar.asp
...if Request.QueryString("campus"
.Count > 0 then session("person"
="campus" end if...
...if session("person"
="campus" then
varfile="campus.xml"...
...set xml = Server.CreateObject("Microsoft.XMLDOM"
xml.async = false
xml.load(Server.MapPath("/Menu/" & varfile))
set xsl = Server.CreateObject("Microsoft.XMLDOM"
xsl.async = false
xsl.load(Server.MapPath("/Menu/menu.xsl"
)
Response.Write(xml.transformNode(xsl))
the stylesheet and xml are very basic...they just write out a fancy table using <menuitem>'s in the xml file
thanks for all your help
here's basically what i have now
asp file for page i want to display
...<td><!--#include virtual="/Menu/navbar.asp"--></td>...
navbar.asp
...if Request.QueryString("campus"
...if session("person"
varfile="campus.xml"...
...set xml = Server.CreateObject("Microsoft.XMLDOM"
xml.async = false
xml.load(Server.MapPath("/Menu/" & varfile))
set xsl = Server.CreateObject("Microsoft.XMLDOM"
xsl.async = false
xsl.load(Server.MapPath("/Menu/menu.xsl"
Response.Write(xml.transformNode(xsl))
the stylesheet and xml are very basic...they just write out a fancy table using <menuitem>'s in the xml file
thanks for all your help