Guest User

alexcrown

a guest
Dec 16th, 2009
412
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet version="1.0"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:template match="/">
  4. <TABLE>
  5.     <TR>
  6.             <TH>Number</TH>
  7.             <TH>Module</TH>
  8.             <TH>Category</TH>
  9.             <TH>Name</TH>
  10.             <TH>Description</TH>
  11.             <TH>Submit date</TH>
  12.             <TH>Create date</TH>
  13.             <TH>Close date</TH>
  14.             <TH>Deadline udf</TH>
  15.             <TH>Submitter</TH>
  16.             <TH>Handler</TH>
  17.             <TH>>Priority</TH>
  18.             <TH>Status</TH>
  19.     </TR>
  20.  
  21.     <xsl:apply-templates select="trackstudio-task/task"/>
  22. </TABLE>
  23. </xsl:template>
  24.  
  25. <xsl:template match="trackstudio-task/task">
  26.     <TR>
  27.         <TD>
  28.             <xsl:value-of select="number" />
  29.         </TD>
  30.         <TD>
  31.             <xsl:apply-templates select="udfs/udf[@name='Module udf']" />
  32.         </TD>
  33.         <TD>
  34.             <xsl:value-of select="category" />
  35.         </TD>
  36.         <TD>
  37.             <xsl:value-of select="name" />
  38.         </TD>
  39.         <TD>
  40.             <xsl:value-of select="description" />
  41.         </TD>
  42.        
  43.         <TD>
  44.             <xsl:value-of select="submitdate" />
  45.         </TD>
  46.  
  47.         <TD>
  48.             <xsl:value-of select="updatedate" />
  49.         </TD>
  50.         <TD>
  51.             <xsl:value-of select="closedate" />
  52.         </TD>
  53.         <TD>
  54.             <xsl:value-of select="udfs/udf[@name='Deadline udf']" />
  55.         </TD>
  56.  
  57.         <TD>
  58.             <xsl:value-of select="submitter" />
  59.         </TD>
  60.         <TD>
  61.             <xsl:value-of select="handler" />
  62.         </TD>
  63.         <TD>
  64.             <xsl:value-of select="priority" />
  65.         </TD>
  66.         <TD>
  67.             <xsl:value-of select="status" />
  68.         </TD>
  69.     </TR>
  70. </xsl:template>
  71.  
  72. <xsl:template match="udf">
  73.     <xsl:value-of select="@value" />
  74. </xsl:template>
  75.  
  76. </xsl:stylesheet>
  77.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×