Exemplo n.º 1
0
		/// <summary>
		/// Create an HTML page of the results
		/// </summary>
		/// <param name="result">XML string of the XAmple trace output</param>
		/// <param name="isTrace"></param>
		/// <returns>URL of the resulting HTML page</returns>
		public override string CreateResultPage(XDocument result, bool isTrace)
		{
			ParserTraceUITransform transform;
			string baseName;
			if (isTrace)
			{
				WordGrammarDebugger = new XAmpleWordGrammarDebugger(m_mediator, result);
				transform = TraceTransform;
				baseName = "XAmpleTrace";
			}
			else
			{
				transform = ParseTransform;
				baseName = "XAmpleParse";
			}
			return transform.Transform(m_mediator, result, baseName);
		}
Exemplo 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 XAmpleWordGrammarDebugger(m_mediator, m_parseResult);
     return(m_wordGrammarDebugger.SetUpWordGrammarDebuggerPage(sNodeId, sForm, sLastURL));
 }