Martin said:
gipsy boy wrote:
No but you need an internal DTD fragment that declares the id attribute
if Mozilla is supposed to find the stylesheet.
How do I do this exactly?
Now I have an error with the parsing of the XSLT sheet.
There are no syntax errors in the xslt sheet, I tested it externally.
I think this is the only obstacle left, the DTD fragment. Thanks so much
if you can help me with that.
Error:Error loading stylesheet: Parsing an XSLT stylesheet failed.
This is the code now:
<?xml version="1.0" encoding="ISO8859-1"?>
<?xml-stylesheet type="text/xml" href="xslt"?><!DOCTYPE APPLICATION
SYSTEM "doc.dtd">
<APPLICATION xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:nonamespaceschemaLocation="#xsd">
<xsl:stylesheet xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
version="1.0" id="#xslt">
<xsl
utput method="html" indent="yes" doctype-public="-//W3C//DTD HTML
4.01 Transitional//EN"
doctype-system="
http://www.w3.org/TR/html4/loose.dtd" />
<xsl:template match="xsl:stylesheet">
<!-- ignore -->
</xsl:template>
<xsl:template match="APPLICATION">
<HTML>
<HEAD>
<TITLE>joesgarage</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"/>
</HEAD>
<BODY BGCOLOR="#DEF0EC" LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0"
MARGINHEIGHT="0"
style="color:#000000;font-family:Trebuchet,Verdana;font-size:11px">
<TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0">
<TR height="100">
<TD COLSPAN="4" bgcolor="#FFFFFF">
<IMG SRC="images/joesgarage.png" WIDTH="321" HEIGHT="100" ALT=""/></TD>
<TD bgcolor="#FFFFFF" width="100%">
<IMG SRC="images/bannerstretch.png" WIDTH="100%" HEIGHT="100"
ALT=""/></TD>
<TD bgcolor="#FFFFFF">
<IMG SRC="images/bannerright.png" WIDTH="432" HEIGHT="100" ALT=""/></TD>
</TR>
<TR height="32">
<TD width="5" bgcolor="#FFFFFF"></TD>
<TD bgcolor="#FFFFFF"><A HREF="browse_catalog_html.asp"><IMG
SRC="images/browsebutton.png" WIDTH="74" HEIGHT="32" ALT=""
BORDER="0"/></A></TD>
<TD bgcolor="#FFFFFF"><A HREF="edit_catalog_html.asp"><IMG
SRC="images/editbutton.png" WIDTH="54" HEIGHT="32" ALT=""
BORDER="0"/></A></TD>
<TD width="185" bgcolor="#FFFFFF"></TD>
<TD valign="bottom" width="100%" colspan="99" align="right"
bgcolor="#FFFFFF"
style="padding-top:3px;padding-right:13px;color:#666666;font-weight:bold;font-size:14px"><FORM
action="search.asp">Search: <INPUT type="text" value="" size="20"
name="query" style="font-size:10px" /></FORM></TD>
</TR>
<TR height="13">
<TD colspan="99"><IMG SRC="images/banner_border.png" WIDTH="100%"
HEIGHT="13" ALT="" BORDER="0"/></TD>
</TR>
<TR height="100%">
<TD colspan="99">
<TABLE width="92%" align="right" cellpadding="0" cellspacing="0"
bgcolor="#426e81">
<TR height="11" ><TD
style="background-image:url(images/ltborder.png);background-repeat:no-repeat;background-align:top
right;" WIDTH="9"></TD>
<TD width="100%"
style="padding:5px;background-image:url(images/topborder.png);background-repeat:repeat-x;font-size:13px;font-weight:bold;font-family:Trebuchet,Verdana,Arial;color:#FFFFFF;background-color:#426e81">Kandidaten</TD></TR>
<TR><TD
style="background-image:url(images/leftborder.png);background-repeat:repeat-y;"
WIDTH="9"><IMG SRC="images/leftborder.png"/></TD>
<TD bgcolor="#FFFFFF" style="padding:8px">
<TABLE border="0" width="100%" bgcolor="#333333" cellpadding="0"
cellspacing="0">
<xsl:apply-templates select="CANDIDATE"/>
</TABLE></TD>
</TR>
<TR height="11" ><TD
style="background-image:url(images/blcorner.png);background-repeat:no-repeat;background-align:top
right;background-color:#426e81" WIDTH="9"></TD>
<TD width="100%"
style="background-image:url(images/bottomborder.png);background-repeat:repeat-x;background-color:#426e81"></TD></TR>
</TABLE>
</TD>
</TR>
<TR height="100%">
<TD colspan="99">
<TABLE width="92%" align="right" cellpadding="0" cellspacing="0"
bgcolor="#426e81">
<TR height="11" ><TD
style="background-image:url(images/ltborder.png);background-repeat:no-repeat;background-align:top
right;" WIDTH="9"></TD>
<TD width="100%"
style="padding:5px;background-image:url(images/topborder.png);background-repeat:repeat-x;font-size:13px;font-weight:bold;font-family:Trebuchet,Verdana,Arial;color:#FFFFFF;background-color:#426e81">Jury's</TD></TR>
<TR><TD
style="background-image:url(images/leftborder.png);background-repeat:repeat-y;"
WIDTH="9"><IMG SRC="images/leftborder.png"/></TD>
<TD bgcolor="#FFFFFF" style="padding:8px">
<TABLE border="0" width="100%" bgcolor="#333333" cellpadding="0"
cellspacing="0">
<xsl:apply-templates select="JURY"/>
</TABLE></TD>
</TR>
<TR height="11" ><TD
style="background-image:url(images/blcorner.png);background-repeat:no-repeat;background-align:top
right;background-color:#426e81" WIDTH="9"></TD>
<TD width="100%"
style="background-image:url(images/bottomborder.png);background-repeat:repeat-x;background-color:#426e81"></TD></TR>
</TABLE>
</TD>
</TR>
<TR height="100%">
<TD colspan="99">
<TABLE width="92%" align="right" cellpadding="0" cellspacing="0"
bgcolor="#426e81">
<TR height="11" ><TD
style="background-image:url(images/ltborder.png);background-repeat:no-repeat;background-align:top
right;" WIDTH="9"></TD>
<TD width="100%"
style="padding:5px;background-image:url(images/topborder.png);background-repeat:repeat-x;font-size:13px;font-weight:bold;font-family:Trebuchet,Verdana,Arial;color:#FFFFFF;background-color:#426e81">Rondes</TD></TR>
<TR><TD
style="background-image:url(images/leftborder.png);background-repeat:repeat-y;"
WIDTH="9"><IMG SRC="images/leftborder.png"/></TD>
<TD bgcolor="#FFFFFF" style="padding:8px">
<TABLE border="0" width="100%" bgcolor="#333333" cellpadding="0"
cellspacing="0">
<xsl:apply-templates select="ROUND"/>
</TABLE></TD>
</TR>
<TR height="11" ><TD
style="background-image:url(images/blcorner.png);background-repeat:no-repeat;background-align:top
right;background-color:#426e81" WIDTH="9"></TD>
<TD width="100%"
style="background-image:url(images/bottomborder.png);background-repeat:repeat-x;background-color:#426e81"></TD></TR>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
</xsl:template>
<xsl:template match="CANDIDATE">
<TR valign="bottom" bgcolor="#FFFFFF">
<TD bgcolor="#FFFFFF" style="font-size:11px"><B>Naam: </B><xsl:value-of
select="NAAM"/></TD>
<TD bgcolor="#FFFFFF" style="font-size:11px"><B>Voornaam:
</B><xsl:value-of select="FIRSTNAME"/></TD>
<TD bgcolor="#FFFFFF" style="font-size:11px"><B>Gdatum:
</B><xsl:value-of select="BIRTHDATE"/></TD>
</TR>
<TR valign="bottom" bgcolor="#FFFFFF">
<TD bgcolor="#FFFFFF" style="font-size:11px"><B>Adres: </B><xsl:value-of
select="ADDRESS"/></TD>
<TD bgcolor="#FFFFFF" style="font-size:11px"><B>Tel.: </B><xsl:value-of
select="TELNR"/></TD>
<TD bgcolor="#FFFFFF" style="font-size:11px"><B>Gsm: </B><xsl:value-of
select="GSMNR"/></TD>
</TR>
<TR valign="bottom" bgcolor="#FFFFFF"><TD bgcolor="#FFFFFF"
style="font-size:16px;font-weight:bold"><xsl:value-of select="titel"/></TD>
<TD bgcolor="#FFFFFF" style="font-size:11px"><B>Beroep:
</B><xsl:value-of select="PROFESSION"/></TD>
<TD bgcolor="#FFFFFF" style="font-size:11px"><B>Idool: </B><xsl:value-of
select="IDOL"/></TD>
<TD bgcolor="#FFFFFF" style="font-size:11px"><B>Motto: </B><xsl:value-of
select="MOTTO"/></TD>
</TR>
<TR valign="bottom" bgcolor="#FFFFFF"><TD bgcolor="#FFFFFF"
style="font-size:16px;font-weight:bold"><xsl:value-of select="titel"/></TD>
<TD colspan="3" bgcolor="#FFFFFF" style="font-size:11px"><B>Motivatie:
</B><xsl:value-of select="MOTIVATION"/></TD>
</TR>
<TR height="1">
<TD colspan="4"></TD>
</TR>
</xsl:template>
</xsl:stylesheet>
<CANDIDATE>
<NAME>
name
</NAME>
<FIRSTNAME>
first
</FIRSTNAME>
<ADDRESS>
first
</ADDRESS>
<BIRTHDATE>
05/12/82
</BIRTHDATE>
<MOTTO>
test
</MOTTO>
<TELNR>
test
</TELNR>
<GSMNR>
test
</GSMNR>
<PROFESSION>
test
</PROFESSION>
<MOTIVATION>
test
</MOTIVATION>
<IDOL>
test
</IDOL>
</CANDIDATE>
<CANDIDATE>
<NAME>
name2
</NAME>
<FIRSTNAME>
firs2t
</FIRSTNAME>
<ADDRESS>
firs2t
</ADDRESS>
<BIRTHDATE>
05/12/82
</BIRTHDATE>
<MOTTO>
test
</MOTTO>
<TELNR>
test
</TELNR>
<GSMNR>
test
</GSMNR>
<PROFESSION>
test
</PROFESSION>
<MOTIVATION>
test
</MOTIVATION>
<IDOL>
test
</IDOL>
</CANDIDATE>
<JURY>
<NAME>
naamjury
</NAME>
<FIRSTNAME>
voornaamjury
</FIRSTNAME>
<BIRTHDATE>
06/13/50
</BIRTHDATE>
<TELNR>
test
</TELNR>
<GSMNR>
test
</GSMNR>
<EXPERTISE>
test
</EXPERTISE>
<GENRE>
test
</GENRE>
</JURY>
<ROUND>
<NAME>
naamronde
</NAME>
<LOCATION>
locatieronde
</LOCATION>
<LOCATIONADDRESS>
test
</LOCATIONADDRESS>
<LOCATIONTELNR>
test
</LOCATIONTELNR>
</ROUND>
</APPLICATION>