[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Why does this work in IE and not in VBscript?
I have this problem. When I display the following xml file using the following xsl, everything works fine. But when I load the same xml file using the same xsl from vbscript it doesn't behave the way it was supposed to. I doesn´t display the html stuff. It just shows things that are xsl. Following is my stylesheet, and the vbscript function. Does anyone have any ideas why this happens? Thanks! <!--record.xsl--> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html > <body> <p> <TABLE> <xsl:for-each select="Field[@No='200']/Subfield[@No='a']"> <tr> <TD> <b>Titulo: </b> <xsl:value-of select="."/> </TD> </tr> </xsl:for-each> </TABLE> </p> </body> </html> </xsl:template> </xsl:stylesheet> Function fnGetRegistoHTML(ByVal BibID) XMLItemDetDoc.async = false XMLItemDetDoc.load("xmlregisto.asp?" & BibID) XSLDoc.async = false XSLDoc.load("record.xsl") fnGetRegistoHTML = XMLItemDetDoc.documentElement.transformNode(XSLDoc.documentElement) End Function Maria Manuel Rodrigues Teixeira EFACEC Sistemas de Informação maria.manuel@xxxxxxxxxxxx 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
|