Tools used by OpenStack Documentation
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

21 lines
955B

  1. <?xml version="1.0"?>
  2. <!-- Use this transform on a sitemap.xml file generated from freesitemapgenerator.com -->
  3. <!-- It removes the /trunk and /draft URLs and the release URLs that you indicate below, here it's folsom -->
  4. <xsl:stylesheet version="1.0"
  5. xmlns:sm="http://www.sitemaps.org/schemas/sitemap/0.9"
  6. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  7. <!-- template match equals any other url element, keep -->
  8. <xsl:template match="node() | @*">
  9. <xsl:copy>
  10. <xsl:apply-templates select="node() | @*"/>
  11. </xsl:copy>
  12. </xsl:template>
  13. <!-- discard any url/loc that refer to trunk or folsom -->
  14. <xsl:template match="sm:url[starts-with(./sm:loc,'http://docs.openstack.org/trunk')]"/>
  15. <xsl:template match="sm:url[starts-with(./sm:loc,'http://docs.openstack.org/draft')]"/>
  16. <xsl:template match="sm:url[starts-with(./sm:loc,'http://docs.openstack.org/folsom')]"/>
  17. </xsl:stylesheet>