|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Unwanted xmlns attribute appearing
Hello, I am generating RSS feeds from an HTML file. With Perl, until I finally realized XSLT would be a much better solution. I decided to create a new XML file, and to have seceral XSL stylesheets, one to produce the HTML file and the others to produce the RSS files. First question: was that stupid? The XML file is currently looking like this: http://edhel.gimp.org/devnews.xml I managed to write the XSL to produce HTML: http://edhel.gimp.org/devnews.xsl produces http://edhel.gimp.org/devnews.html Now I'm struggling with the RSS1.0 feed. http://edhel.gimp.org/devnews-rss1.xsl produces http://edhel.gimp.org/devnews-rss1.xml The <item> markup gets a xmlns="" attribute, and I don't know where that comes from. <xsl:template match="week"> <item> <xsl:attribute name="rdf:about">http://edhel.gimp.org/devnews.html#<xsl:value-of select="normalize-space(parent::year/text())"/>-<xsl:value-of select="normalize-space(text())"/></xsl:attribute> [...] </item> </xsl:template> produces: <item xmlns="" rdf:about="http://edhel.gimp.org/devnews.html#2006-17"> So, second question: what did I miss there? Thanks, Karine
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|







