home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 October / Chip_2002-10_cd1.bin / firmy / Pohoda / Start / data1.cab / Pohoda_Files / Info / order.xsl < prev    next >
Extensible Markup Language  |  2002-05-27  |  954b  |  30 lines

  1. <?xml version="1.0" encoding="Windows-1250"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  3.  
  4.   <xsl:template match="/">
  5.     <xsl:apply-templates select="order"/>
  6.   </xsl:template>
  7.  
  8.   <xsl:template match="@* | node()"><xsl:copy><xsl:apply-templates select="@* | node()"/></xsl:copy></xsl:template>
  9.  
  10.   <xsl:template match="order">
  11.     <eform version="1.0">
  12.     <order version="1.1">
  13.     <xsl:apply-templates select="document"/>
  14.     <xsl:apply-templates select="orderItem"/>
  15.     <xsl:apply-templates select="supplier"/>
  16.     <xsl:apply-templates select="customer"/>
  17.     <xsl:apply-templates select="payment"/>
  18.     <xsl:apply-templates select="eformInfo"/>
  19.     </order>
  20.     </eform>
  21.   </xsl:template>
  22.  
  23.   <xsl:template match="orderItem">
  24. <xsl:copy><xsl:apply-templates select="@*"/><xsl:value-of/></xsl:copy>
  25.   </xsl:template>
  26.  
  27.   <xsl:template match="@refIDS"><xsl:attribute name="code"><xsl:value-of/></xsl:attribute></xsl:template>
  28.  
  29. </xsl:stylesheet>
  30.