variabel fra asp til xsl
Jeg har lavet flg. i Dreamweaver men det fungerer ikke. Nogen der har et bud? Den får ligesom ikke variablen med over.xsl kode:
<?xml version="1.0" encoding="iso-8859-1"?><!-- DWXMLSource="kvarterplan.xml" -->
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "™">
<!ENTITY mdash "—">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "€">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="iso-8859-1"/>
<xsl:template match="/">
<xsl:param name="omraade"/>
<xsl:for-each select="root/area[@name = $omraade]">
Hello!
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
asp kode:
Dim mm_xsl: Set mm_xsl = new MM_XSLTransform
mm_xsl.setXML "mainxml.xml"
mm_xsl.setXSL "xmlfragment.xsl"
mm_xsl.addParameter "omraade", "kontakt"
Response.write mm_xsl.Transform()