% option explicit dim xmlFile, defaultDocument xmlFile = "data.xml" defaultDocument = "default.htm" sub alerter(byRef strMsg) response.write "
"
response.Write "" + siteTitle + "" response.Write " | "
if siteLogo <> "" then response.write " |
| " dim chapterList, chapter, chapterIx chapterIx = 1 set chapterList = xmlDoc.documentElement.selectNodes("chapter") for each chapter in chapterList dim style style = "" if chapterIx = chapterParam then style = "style='background-color:#dedede;'" response.Write "" + chapter.selectSingleNode("title").text + "" chapterIx = chapterIx + 1 next response.Write " | "
dim nodeList, node, nodeIx
nodeIx = 1
if sPath <> "" then
set nodeList = xmlDoc.documentElement.selectSingleNode(sPath)
else
set nodeList = xmlDoc.documentElement
end if
for each node in nodeList.childNodes
dim currNode
currNode = node.tagName
if currNode <> "section" then
select case (currNode)
case "title"
response.Write "" + node.text + "" case "para" response.Write "" + node.text + " "
case "screen"
response.write "" + node.text + " "
case "graphic"
dim imgSRC
imgSRC = node.attributes.getNamedItem("fileref").value
response.Write " |