- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI have been trying to use the MSXML DOM object to insert the parameter.
E.g.
From this XSLT
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.o
<xsl:output method="html" version="1.0" indent="yes"/>
<xsl:param name="functioncall" />
....
to
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.o
<xsl:output method="html" version="1.0" indent="yes"/>
<xsl:param name="functioncall" />
<xsl:param name="functioncall2" />
....
using MSXML DOM Object
Please advice.
Tks in advance
Ivanc
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: zulu_11Posted on 2004-06-09 at 04:28:20ID: 11268528
this is not correct....you use the DOM to insert the values into the parameters declared in the XSL already...
rg/1999/XS L/Transfor m">
ath("../xs l/orderdet ails.xsl")
CUMENT") 2.XSLTEMPL ATE")
ode <> 0) then & "<br>" & "<br>"
ode <> 0) then & "<br>" & "<br>"
or g("catid") "vsCatid", lsCatId
rg/1999/XS L/Transfor m"> >
what i mean is....
You already have
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.o
<xsl:output method="html" version="1.0" indent="yes"/>
<xsl:param name="functioncall" />
<xsl:param name="functioncall2" />
this as your stylesheet and you then through the MSXML DOM insert / pass values to these parameters..
here's an Example :
DIM lobjXml
DIM lobjXsl
DIM lsTransformedValue
DIM lsTargetPage
Dim lsPathOrderXSL
DIM lobjTemplate
DIM lobjProcessor
DIM lsCatid
lsPathOrderXSL=server.mapp
'Creating DOM Object for Loading XML(lsReceiveOrders ) and XSL
SET lobjXml = server.CreateObject ("MSXML2.DOMDOCUMENT")
SET lobjXsl = server.CreateObject ("MSXML2.FREETHREADEDDOMDO
SET lobjTemplate = server.CreateObject("MSXML
lobjXml.async=false
'Loading XML(lsReceiveOrders )
lobjXml.loadxml lsReceiveOrders
'Parsing XML(lsReceiveOrders ) for any error
if (lobjXml.parseError.errorC
Response.Write "XML error - " & "<br>"
Response.Write "Error Reason: " & lobjXml.parseError.reason & "<br>"
Response.Write "Source: " & lobjXml.parseError.srcText
Response.Write "Error Line: " & lobjXml.parseError.line & "<br>"
Response.Write "Error Position: " & lobjXml.parseError.linepos
Response.End
end if
'Loading XSL(lsPathOrderXSL)
lobjXsl.async=false
lobjXsl.load lsPathOrderXSL
'Parsing XSL(lsPathOrderXSL) for any error
if (lobjXsl.parseError.errorC
Response.Write "XSL error - " & "<br>"
Response.Write "Error Reason: " & lobjXsl.parseError.reason & "<br>"
Response.Write "Source: " & lobjXsl.parseError.srcText
Response.Write "Error Line: " & lobjXsl.parseError.line & "<br>"
Response.Write "Error Position: " & lobjXsl.parseError.linepos
Response.End
end if
'TEMPLATE is used to pass the Parameter values
set lobjTemplate.stylesheet = lobjXsl
set lobjProcessor = lobjTemplate.createProcess
lsCatid=Request.QueryStrin
lobjProcessor.addParameter
lobjProcessor.input = lobjXml
lobjProcessor.Transform()
lsTransformedValue = lobjProcessor.output
Response.Write lsTransformedValue
--------SAMPLE XSL WILL HAVE THIS...
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.o
<xsl:param name="vsCatid"></xsl:param
<xsl:template match="/">
and the param will have a value...
Hope i have understood your question correctly.....
Zulu
'Clean Up
set lobjXml=nothing
set lobjXsl=nothing
SET lobjXmlHTTP =nothing
End Sub