Sep 12, 2003 #1 gdrenfrew Programmer Aug 1, 2002 227 GB Hello, If I can put raw HTML into my XSL files, is it possible to put ASP in their too? Graeme
Sep 14, 2003 #2 sethu27 Programmer Aug 26, 2003 31 IN hi, It is possible through saxon, I tested with a xml file, it works fine the XML file is <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="asp_xslt.xsl"?> <xml> <books> <book>ASP Unleashed</book> </books> </xml> the xslt file is <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"><xslutput method="text" omit-xml-declaration="yes"/> <xsl:template match="/"> <xsl:variable name="asp"> <xsl:text>Response.write "</xsl:text> </xsl:variable> <p> <xsl:text disable-output-escaping="yes"><%</xsl:text> <xsl:value-of select="concat($asp, //books/book)"/>"%> </p> </xsl:template> </xsl:stylesheet> transform the xml file into asp file using saxon version 6(which is installed in my machine), that is by saxon asp_xml.xml asp_xslt.xsl > test.asp which generates test.asp file. Upvote 0 Downvote
hi, It is possible through saxon, I tested with a xml file, it works fine the XML file is <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="asp_xslt.xsl"?> <xml> <books> <book>ASP Unleashed</book> </books> </xml> the xslt file is <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format"><xslutput method="text" omit-xml-declaration="yes"/> <xsl:template match="/"> <xsl:variable name="asp"> <xsl:text>Response.write "</xsl:text> </xsl:variable> <p> <xsl:text disable-output-escaping="yes"><%</xsl:text> <xsl:value-of select="concat($asp, //books/book)"/>"%> </p> </xsl:template> </xsl:stylesheet> transform the xml file into asp file using saxon version 6(which is installed in my machine), that is by saxon asp_xml.xml asp_xslt.xsl > test.asp which generates test.asp file.
Sep 15, 2003 Thread starter #3 gdrenfrew Programmer Aug 1, 2002 227 GB thanks for this, I think i had my syntax wrong so I'll give it another try. graeme Upvote 0 Downvote