C# Class SIL.FieldWorks.WordWorks.Parser.M3ToXAmpleTransformer

Given an XML file representing an instance of a M3 grammar model, transforms it into the format needed by XAmple.
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Private Properties

Свойство Type Description
ApplyGafawsAlgorithm string
CreateTransform System.Xml.Xsl.XslCompiledTransform
InsertOrderclassInfo void
TransformPosInfoToGafawsInputFormat void

Méthodes publiques

Méthode Description
M3ToXAmpleTransformer ( string database ) : System

Initializes a new instance of the M3ToXAmpleTransformer class.

MakeAmpleFiles ( XDocument model ) : void
PrepareTemplatesForXAmpleFiles ( XDocument domModel, XDocument domTemplate ) : void

Private Methods

Méthode Description
ApplyGafawsAlgorithm ( string gafawsFile ) : string
CreateTransform ( string xslName ) : XslCompiledTransform
InsertOrderclassInfo ( XDocument domModel, string resultFile ) : void
TransformPosInfoToGafawsInputFormat ( XElement templateElem, string gafawsFile ) : void

transform the POS that has templates to GAFAWS format

Method Details

M3ToXAmpleTransformer() public méthode

Initializes a new instance of the M3ToXAmpleTransformer class.
public M3ToXAmpleTransformer ( string database ) : System
database string
Résultat System

MakeAmpleFiles() public méthode

public MakeAmpleFiles ( XDocument model ) : void
model XDocument
Résultat void

PrepareTemplatesForXAmpleFiles() public méthode

public PrepareTemplatesForXAmpleFiles ( XDocument domModel, XDocument domTemplate ) : void
domModel XDocument
domTemplate XDocument
Résultat void