Ejemplo n.º 1
0
		public override string CreateResultPage(XDocument result, bool isTrace)
		{
			ParserTraceUITransform transform;
			string baseName;
			if (isTrace)
			{
				WordGrammarDebugger = new HCWordGrammarDebugger(m_mediator, result);
				transform = TraceTransform;
				baseName = "HCTrace";
			}
			else
			{
				transform = ParseTransform;
				baseName = "HCParse";
			}
			var args = new XsltArgumentList();
			args.AddParam("prmHCTraceLoadErrorFile", "", Path.Combine(Path.GetTempPath(), m_cache.ProjectId.Name + "HCLoadErrors.xml"));
			return transform.Transform(m_mediator, result, baseName, args);
		}
Ejemplo n.º 2
0
 /// <summary>
 /// Initialize what is needed to perform the word grammar debugging and
 /// produce an html page showing the results
 /// </summary>
 /// <param name="sNodeId">Id of the node to use</param>
 /// <param name="sForm">the wordform being tried</param>
 /// <returns>temporary html file showing the results of the first step</returns>
 public override string SetUpWordGrammarDebuggerPage(string sNodeId, string sForm, string sLastURL)
 {
     m_wordGrammarDebugger = new HCWordGrammarDebugger(m_mediator, m_parseResult);
     return(m_wordGrammarDebugger.SetUpWordGrammarDebuggerPage(sNodeId, sForm, sLastURL));
 }