Question : XSLT Wildcards and custom processing.

Hello,

I have some XML (see code). The problem I am having is the 'SUB_x_x' value is defined uniquely when the XML is generated and it is the 'Type' attribute that describes the data. Unfortunately I cant alter this XML output to make things simpler. What I need to know is how in XSLT to detect with an apply-templates command whether a node starts with 'Sub' and then also the xsl:template coding that can further detect the 'Type' variable and do conditional processing based on this value?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
<Out>
 <Results>
  <Sub_1_1 Type="CLASS1">
   Alpha
  </Sub_1_1>
  <Sub_2_2 Type="CLASS2">
   Beta
  </Sub_2_2>
 </Results>
</Out>

Answer : XSLT Wildcards and custom processing.

You can use a seperate part of maintenace plan functionality to do this - Maintenance Cleanup Task:
http://msdn.microsoft.com/en-us/library/ms177182.aspx

Suggest you include it as a conditional part of the sub plan so old backups only get cleaned up once a new backup has been created.
Random Solutions  
 
programming4us programming4us