Xvcl And Number
CjOS Project @ cjos.sourceforge.net
Index
Bind Pages
Cjos Library
Cjos Pages
Cjos News Pages
Eric Pages
Introduction To Smart Api
Osgi Pages
Registry Api Pages
Smart Api Pages
Xvcl Pages
CjOS Project
Summary Page
Mailing List
Download
CVS
JOS Technical Edition
Support This Project
Xvcl Pages; [ Cjos Audience]

Overview

About this proposal

An XVCL processor must imply the type of a variable. The value of a variable is set with the value attribute of the set tag.

Example

 <set var="version" value="1a"/>

Unfortunately for my application, the XVCL processor interprets "1a" as the number "1".

Proposal

Interpret "1a" as a string, not a number, because it contains the letter "a".

 <set var="version" value="1a"/>

Or, support an explicit type using a type attribute.

 <set var="version" value="1a" type="string"/>

How do I?

 <set var="package" expr="?@package.prefix??@version?"/>
 <set var="directory" expr="?@directory.prefix??@version?"/>
 <set var="classname" expr="?@x-frame.name?"/>
 <set var="directory" expr="?@x-frame.outdir?"/>
 <set var="package" expr="?fn("pd2pn",@x-frame.outdir)?"/>