Predefined variables

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  Code Generator > SPL (Spy Programming Language) >

Predefined variables

After a Schema file is analyzed by the code generator, the objects in the table below exist in the Template Engine.

 

Name

Type

Description

$schematype

integer

1 for DTD, 2 for XML Schema

$TheLibrary

Library

The library derived from the XML Schema or DTD

$module

string

Name of the source Schema without extension

$outputpath

string

The output path specified by the user, or the default output path

 

For C++ generation only:

 

Name

Type

Description

$domtype

integer

1 for MSXML, 2 for Xerces

$libtype

integer

1 for static LIB, 2 for DLL

$mfc

boolean

True if MFC support is enabled

$VSVersion

integer

Specifies the Visual Studio version. Valid values:

 

0

No Visual Studio project

2008

Visual Studio 2008

2010

Visual Studio 2010

2013

Visual Studio 2013

2015

Visual Studio 2015

2017

Visual Studio 2017

 

For C# generation only:

 

Name

Type

Description

$VSVersion

integer

Specifies the Visual Studio version. Valid values:

 

0

No Visual Studio project

2008

Visual Studio 2008

2010

Visual Studio 2010

2013

Visual Studio 2013

2015

Visual Studio 2015

2017

Visual Studio 2017


© 2019 Altova GmbH