Mam z tym problem. Nie wiem czemu, ale nie chce działać.
Zrobiłem sobie przydładowo:
plik.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="styl.xsl"?>
<!DOCTYPE programy [
<!ENTITY KanalRSS SYSTEM "http://www.gazeta.pl/pub/rss/wiadomosci.xml">]>
<tagglowny>
&KanalRSS;
</tagglowny>
styl.xsl
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
version="1.0">
<xsl:output method = "html" version = "4.0" encoding="ISO-8859-1" indent = "yes" />
<xsl:strip-space elements = "*" />
<xsl:template match = "/TagGlowny" >
<html>
<head>
<title><xsl:value-of select="rss/channel/title" /></title>
</head>
<body>
<xsl:value-of select="rss/channel/copyright" />
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Pod firefoxem nic nie pokazuje, a pod IE mam błąd:
Error while parsing entity 'KanalRSS'. Could not load 'http://www.gazeta.pl/pub/rss/wiadomosci.xml'. Odmowa dostępu. Error...
Co robię nie tak?