[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XSLT Parameter error in ASP transformation 8007005
Hi > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Heath DeForrest Allison > Sent: Friday, October 31, 2003 4:56 PM > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx > Subject: XSLT Parameter error in ASP transformation 80070057 > > > The problem: > > msxml3.dll error '80070057' > > The parameter is incorrect. This error is related to prolems within your stylesheet When you get this error save the related xml file. Only them you'll be able to know what is causing the error > > /Default.asp, line 760 > > The components > > You can see my XML and XSL here: > xml: http://www.studiozion.com/blog/blogfiles/blog10.xml > xsl: http://www.studiozion.com/blogmain.xsl By the way, in your code you have <xsl:for-each select="//UPDATE"> This is very expensive. If your UPDATE node exists only as a child of DOCUMENT you'll achieve the same efect by using <xsl:for-each select="DOCUMENT/UPDATE"> You also don't need the first <xsl:if test="position()=1"> Every time you want just the first use <xsl:for-each select="DOCUMENT/UPDATE[1]"> When you want all just take out the [1] > > My ASP code looks like this: > > <% > > 'dim them vars > dim thisMonth > dim blogfile > dim dataFile_xml > dim datafile_xsl > > 'fetch xml > thisMonth = cstr(month(now)) > > blogfile = ("/blog/blogfiles/blog" + thisMonth + ".xml") > dataFile_xml = Server.mappath(blogfile) set XMLDoc = > server.createObject("Msxml2.DOMDocument") > XMLDoc.async = false > XMLDoc.load dataFile_xml > > 'fetch xsl > set XSLDoc = server.createObject("Msxml2.DOMDocument") > XSLDoc.async = false > datafile_xsl=server.mappath("blogmain.xsl") > XSLDoc.load datafile_xsl > > 'transform If you don't want to get this error add here On error resume next > response.write(XMLDoc.transformNode(XSLDoc)) Now check if it had an error If err.number<>0 then do whatever you want with the error End if Regards, Americo Albuquerque > > %> > > This error attacked me like a thief in the night. One day my > site worked fine the next day... not so much. I've contacted > my service provdier to find out if they changed any > permissions or anything else that might becausing my problem, > and they insisted that the fault was all mine. So I thought > I'd put it before a jury of my peers and ask if anyone can > shed some light on why I am seeing this error. Any and all > help is much appreciated, a virtual beer to anyone who can > steer me toward the proverbial light at the end of this tunnel. > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|