July 23rd, 2013, 05:47 PM
Can't get DOCTYPE to validate
July 23rd, 2013, 06:12 PM
That is... just not right. You're creating some crazy hybrid of XML, HTML, CSS, and XSLT. The XML+XSLT has to be separate from the HTML+CSS.
Your first step is to write valid RSS. Forget the HTML and the CSS for now.
If you don't know how to write it then look at the spec. Tip: the root element is not <html/> and there are no <itemN/> elements.
July 23rd, 2013, 08:10 PM
I am not clear what you mean that I am creating a hybrid??
Originally Posted by requinix
Yes,this is supposed to be an RSS feed, but it is to be contained within an XML document that is to be stylized using an external CSS file. I am fairly new to XML, having done most of my code in HTML up until now, but I thought this was coded correctly, and could not figure out the error message....
July 23rd, 2013, 09:03 PM
CSS is not for styling XML. You could, but that's a hell of a lot of work since you'd have to explicitly implement most of the stuff you might take for granted in HTML: block and inline styles being the most noticeable. Even then there are some things you couldn't reproduce, like links, as they require cooperation from the browser.
Here's how it's supposed to go:
1. RSS as pure XML
2. Use a <?xml-stylesheet?> to link in XSLT
3. The XSLT transforms the RSS XML into HTML
4. That HTML can include a <link> for the external CSS