I am trying to transform RSSTV XML using XSLT.
The problem I am having is that I need the XML to look like this:
<?xml version="1.0"?><rss xmlns:tv="http://www.rss-tv.org/rss/tv1.0" version="2.0"><channel>
However, I am unable to create the rss element with this attribute.
I tried using <xsl:attribute> but failed to achieve it.
Just write:
xmlns:tv="http://www.rss-tv.org/rss/tv1.0"isn’t an attribute — it is a namespace definition and defines a namespace node belonging to thersselement.