novice XSLT problem in VB

webmasterbeta

New Member
i can't seem to call on my XSLT in VB. it was dimmed as New DOMDocument,but that doesn't seem to handle XSLT's. i also tried as New XSLTemplate,but that doesn't have the methods i need. i'm loading one .xml file andattempting to transform the whole document using my XSLT and write the resultsto a text file. can anyone help?it says "invalid at top-level of document" likely because an XSLT is notan .xml doc. but i'm finding very little information about this.here's my code:Dim source As New DOMDocumentsource.Load "AVAIL_IN_TEST.xml" 'this path is merely an exampleDim stylesheet As New DOMDocumentstylesheet.loadXML "RSAVAIL_IN_TEST.xslt" 'this path is merely an examplesource.transformNodeToObject stylesheet, result 'where result is my FSO
 
Back
Top