topical media & game development

talk show tell print

professional-xml-02-Rss2Atom.xsl / xsl



  <?xml version='1.0' encoding='utf-8'?>
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="http://www.w3.org/2005/Atom" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" exclude-result-prefixes="a dc slash wfw">
  <xsl:output method="html" encoding="UTF-8" indent="yes"/>
          <xsl:template match="/">
          <feed xmlns:a="http://www.w3.org/2005/Atom" xmlns="http://www.w3.org/2005/Atom" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/"/>
          <xsl:value-of select="rss"/> xml:lang=""
          <link type="text/html" rel="alternate"><xsl:attribute name="href">
                                          <xsl:value-of select="rss/channel/link"/>
                                  </xsl:attribute></link>
          <subtitle type="html"/>
          <xsl:value-of select="rss/channel/description"/>
          <generator/>
          <xsl:value-of select="rss/channel/generator"/>
          <entry/>
          <link><xsl:attribute name="href">
                                                  <xsl:value-of select="rss/channel/item/link"/>
                                          </xsl:attribute></link>
          <content type="html"/>
          <xsl:value-of select="rss/channel/item/description"/>
          <slash:comments/>
          <xsl:value-of select="rss/channel/item/slash:comments"/>
          <wfw:commentrss/>
          <xsl:value-of select="rss/channel/item/wfw:commentRss"/>
  </xsl:template>
  </xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2005. Progress Software Corporation. All rights reserved.
  <metaInformation>
  <scenarios ><scenario default="yes" name="rss.xml" userelativepaths="yes" externalpreview="no" url="rss.xml" htmlbaseurl="" outputurl="" processortype="internal" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="file:
c:/Documents and Settings/Kent/My Documents/My Writing/Books/ProXML/02&#x2D;XMLTools/codeWork/atom.xml" destSchemaRoot="feed" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no" >