Share

PLiX (Programming Language in XML)

File Release Notes and Changelog

Release Name: 2006-04 CTP

Notes: The easiest way to use PLiX is to create an xml file in a C# or VB project and to add an xslt file with the same name as the xml file (GenData.xml and GenData.xslt). GenData.xslt should generate an xml file with a root node of plx:root where plx maps to the 'http://schemas.neumont.edu/CodeGeneration/PLiX' namespace. You can now select the .xml file in Solution Explorer, open the Properties Window, and set the CustomTool property to NUPlixLoader. Your code will be generated in GenData.cs or GenData.vb (depending on the project type) below the .xml file (you may need to select Show All Files on the Solution Explorer toolbar to see the generated file). NUPlixLoader automatically passes in 4 parameters (you can bind these with xsl:param at the top of your template file). CustomToolNamespace maps to the value in the CustomToolNamespace property (right below CustomTool). DefaultNamespace maps to the default namespace in your project settings. ProjectPath gives the root directory of the project, and SourceFile gives the source file path (relative to the project). Generally, you will only need CustomToolNamespace. To pass in additional information, create a file called plix.xml in the root project directory. Use elements from the 'http://schemas.neumont.edu/CodeGeneration/PLiXLoader' namespace to provide additional parametrization to your transform files. You can also add custom extension functions and project references from this location.


Changes: