Exemplo n.º 1
0
 /// <summary>
 /// This method selects the appropriate output style.
 /// </summary>
 /// <param name="context">The current context.</param>
 public override void OutputSelect(ContentCompilerContext context)
 {
     //string id = context.Request.Data.ResponseOutputType.ToLower();
     string id = context.Request.Settings.OutputColl[0].OutputType;
     switch (id)
     {
         case "xpath":
             context.ChangeState("OutputXPath");
             break;
         case "xslt":
             context.ChangeState("OutputTransform");
             break;
         case "mime":
             context.ChangeState("OutputMime");
             break;
         default:
             throw new InvalidOutputCCException(@"Output format """ + id + @""" not recognised.");
     }
 }
Exemplo n.º 2
0
 public override void RequestValidate(ContentCompilerContext context)
 {
     context.ChangeState("ModelDataCompiler");
 }