salve ragazzi come posso passare un link ad un file xml?
questo è il file asp dove leggo il file xml
stampaxml.asp
codice:
<body>
<h4>News</h4>
<%
Dim objXml, objXsl
Set objXml = Server.CreateObject("Microsoft.XMLDOM")
objXml.async = False
objXml.load Server.MapPath("database.xml")
Set objXsl = Server.CreateObject("Microsoft.XMLDOM")
objXsl.async = False
objXsl.load Server.MapPath("style.xsl")
Response.Write objXml.transformNode(objXsl)
Set objXml = Nothing
Set objXsl = Nothing
%>
</body>
questo è il file xsl dove mi creo la struttura:
style.xsl
codice:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml" lang="it" xml:lang="it">
<div id="mainBox">
[img]images/arrow-left.png[/img]
[img]images/arrow-right.png[/img]
<div id="newsBoxCont">
<ul id="newsBox">
<xsl:for-each select="database/record">
<li class="singleNews">
<h2><xsl:value-of select="titolo"/></h2>
<xsl:value-of select="notizia"/>
</p>
</xsl:for-each> [/list]
</div>
</div>
</html>
</xsl:template>
</xsl:stylesheet>
è questo è il file xml
database.xml
codice:
<?xml version="1.0" encoding="ISO-8859-1"?>
<database>
<record>
<titolo id="1">Eventi in programmazione</titolo>
<notizia>Iscriviti ai prossimi eventi.</notizia>
</record>
</database>
il mio problema è che il campo notizia del file xml fosse un link ad un'altra pagina...
ho cercato un po sul web...ho provato CDATA,ma no funge spero qualkuno mi possa aiutare...
saluti