Quantcast
Channel: Changegin doctype root element to rss from html using xslt? - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Changegin doctype root element to rss from html using xslt?

$
0
0

I'm trying to add an rss-doctype to an xml-document rendered using xslt. How do I change the root element?

This is what it currently looks like:

<!DOCTYPE html PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN""about:legacy-compat"> 

I would like:

<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN""about:legacy-compat">

Here is my outputnode:

<xsl:outputmethod="xml"version="1.0"encoding="UTF-8"doctype-public="-//Netscape Communications//DTD RSS 0.91//EN"indent="yes"/>

Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images