From: Gregoor, Van Der Eyken (geyken@esual.com)
Date: 04/04/2002 - 09:22
bonjour
un exemple de transformation tres simple du fichier menu.xml :
http://msdn.microsoft.com/menu.xml
fonctionne en local, qd je ramene ce fichier Xml
en revanche la transformation echoue lorque j'utilise directement l'url
pourquoi ?
<%
dim sUrlData
dim sUrlFormat
sUrlData="menus.xml"
'sUrlData="http://msdn.microsoft.com/menu.xml"
sUrlFormat= "menus.xsl"
Set oXmlData=Server.CreateObject("Msxml2.DOMdocument.3.0")
Set oXmlFormat=Server.CreateObject("Msxml2.FreeThreadedDOMDocument.3.0")
Set oXmlTemp=Server.CreateObject("MSXML2.XSLTemplate.3.0")
Dim oXmlProc
oXmlData.async=false
'oXmlData.load(sUrlData)
oXmlData.load(Server.MapPath(sUrlData))
oXmlFormat.async=false
oXmlFormat.load(Server.MapPath(sUrlFormat))
Set oXmlTemp.stylesheet=oXmlFormat
Set oXmlProc=oXmlTemp.createProcessor()
'response.write(oXmlData.xml)
'response.end
oXmlProc.input=oXmlData
oXmlProc.output=RESPONSE
'oXmlProc.addParameter "PARAMVALUE",PARAMVALUE
oXmlProc.transform
%>
merci
greg
--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !
Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
Cette liste est a votre disposition pour discuter en francais de
tout sujet technique lie a XML.
Pour resilier votre abonnement, envoyez un message contenant
la commande "unsubscribe" a xml-tech-request@xmlfr.org
(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
Archive générée par hypermail 2.1.3 le 28/06/2004 - 11:06 UTC
webmaster@xmlfr.org
|