home *** CD-ROM | disk | FTP | other *** search
/ moodle.waes.ac.uk / moodle.waes.ac.uk.zip / moodle.waes.ac.uk / TMG / SP1-TMG-KB981324-AMD64-ENU.msp / PCW_CAB_SHFx2 / F2143_msfpcui.dll / BINARY / 25588 < prev    next >
Text File  |  2010-06-15  |  2KB  |  37 lines

  1. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2005/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">
  2.     <xsl:template match="/">
  3. <Subreport><xsl:attribute name="Name"><xsl:value-of select="/SubreportParams/CategoryName"/>_<xsl:value-of select="/SubreportParams/ReportName"/></xsl:attribute>
  4.     <DataElementOutput>Output</DataElementOutput>
  5.     <Parameters>
  6.         <Parameter Name="FromDate">
  7.             <Value>=Parameters!FromDate.Value</Value>
  8.         </Parameter>
  9.         <Parameter Name="ToDate">
  10.             <Value>=Parameters!ToDate.Value</Value>
  11.         </Parameter>
  12.         <Parameter Name="ReportType">
  13.             <Value>=Parameters!ReportType.Value</Value>
  14.         </Parameter>
  15.         <Parameter Name="Category">
  16.             <Value><xsl:value-of select="/SubreportParams/CategoryDisplayName"/></Value>
  17.         </Parameter>
  18.         <xsl:for-each select="/SubreportParams/RdlParameter">
  19.         <Parameter><xsl:attribute name="Name"><xsl:value-of select="."/></xsl:attribute>
  20.             <Value>=Code.GetReportSpecificParam("<xsl:value-of select="/SubreportParams/CategoryName"/>","<xsl:value-of select="/SubreportParams/ReportName"/>","<xsl:value-of select="."/>",Parameters!TweakingParams.Value)</Value>
  21.         </Parameter>
  22.         </xsl:for-each>
  23.     </Parameters>
  24.     <Top><xsl:value-of select="/SubreportParams/RdlOrder"/>in</Top>
  25.     <ReportName><xsl:value-of select="/SubreportParams/ReportName"/></ReportName>
  26.     <Width>11.625in</Width>
  27.     <ZIndex><xsl:value-of select="/SubreportParams/RdlOrder"/></ZIndex>
  28.     <Visibility>
  29.     <Hidden>=Code.IsSubreportHidden("<xsl:value-of select="/SubreportParams/CategoryName"/>", "<xsl:value-of select="/SubreportParams/ReportName"/>", Parameters!TweakingParams.Value)</Hidden>
  30.     </Visibility>
  31.     <Label>=iif(Code.IsSubreportHidden("<xsl:value-of select="/SubreportParams/CategoryName"/>", "<xsl:value-of select="/SubreportParams/ReportName"/>", Parameters!TweakingParams.Value),Nothing,"<xsl:value-of select="/SubreportParams/CategoryDisplayName"/>: <xsl:value-of select="/SubreportParams/ReportDisplayName"/>")</Label>
  32.     <Left>0.125in</Left>
  33.     <Height>0.125in</Height>
  34. </Subreport>
  35.     </xsl:template>
  36. </xsl:stylesheet>
  37.