Hi i have kind changed the way i am doing things a little.I have a XML source.I run a transformation on that to create an rss file.This works fine, my rss worls in my reader, links back to site.My problem is i want the rss to be displayable to people who view the rss outside of a reader (much like the bbc do if you click on their rss).BBC SportI know how to attach the style sheet, just use the line
<?xml-stylesheet type="text/xsl" href="nolsol.xsl"?>
BUT. as i am creating my rss file from my xml source, i need to write the stylesheet line in my xsl code. What i want my code to look like is:rss.xml:
<?xml version="1.0" encoding="ISO-8859-1" ?><?xml-stylesheet title="XSL_formatting" type="text/xsl" href="nolsol.xsl"?><rss version="2.0"> <channel>
To do this i have currently this code in my xsl stylesheet:rss.xsl:
<?xml version="1.0" encoding="ISO-8859-1" ?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method='xml' version='1.0' encoding='UTF-8' indent='yes'/> <xsl:value-of select="title"/> <?xml-stylesheet type="text/xsl" href="nolsol.xsl"?> <rss version="2.0"> <channel>
Now currently this outputs:current output:
<rss version="2.0"> <channel><title>PWSB RSS</title><link>NewMusicReview.xml</link> <description>
Which as you can see doesnt include the stylesheet, and thus displays a tree structure when it is viewed.I am guessing the way i am trying to indicate the rss file has to use the stylesheet is incorrect, currently
<?xml-stylesheet type="text/xsl" href="nolsol.xsl"?>
just before the rss declaration.Any ideas on how i can go about getting this line to output? If i can get this one line to start of the rss.xml file my work would be done!cheers in advance,clarkey