Advertisement
Guest User

Untitled

a guest
Jan 13th, 2015
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.89 KB | None | 0 0
  1. <?xml version='1.0'?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:output method="text"/>
  4.  
  5. <!-- default: rush through everything, and do nothing -->
  6. <xsl:template match="@*|text()"/>
  7.  
  8. <xsl:template match="/channel/item">
  9.         <xsl:value-of select="manufacturer_name"/>
  10.         <xsl:text>;</xsl:text>
  11.         <xsl:value-of select="product_sku"/>
  12.         <xsl:text>;</xsl:text>
  13.         <xsl:value-of select="product_name"/>
  14.         <xsl:text>;</xsl:text>
  15.         <xsl:value-of select="product_price"/>
  16.         <xsl:text>;</xsl:text>
  17.         <xsl:value-of select="product_availability"/>
  18.         <xsl:text>;</xsl:text>
  19.         <xsl:value-of select="picture_url"/>
  20.         <xsl:text>;</xsl:text>
  21.         <xsl:value-of select="price_with_tax"/>
  22.         <xsl:text>;</xsl:text>
  23.         <xsl:text>&#10;</xsl:text>
  24. </xsl:template>
  25.  
  26. </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement