Feature Requests item #1764989, was opened at 2007-07-31 15:51
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642717&aid=1764989&group_id=105970

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: bootstrapper
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: Heath Stewart (heaths)
Assigned to: Rob Mensching (robmen)
Summary: Binder Functions

Initial Comment:
Like pre-processor functions, the binder should also support functions. I can 
think of two cases where this would be needed:

1. Common loc scenario of processing localized positional formattable strings. 
I.e., "{0} {1}" might be "{1} {0}" in some languages and that string would be 
in different WXL files but take unlocalized text  such as an identifier or 
[Manufacturer].

Along with this, I recommend a standard function of loc.format(id, ...) that 
simply calls String.Format().

2. To handle binder attributes we have previous discussed. Instead of devising 
some properly formatted variable to get, say, the AssemblyName from file F_1234 
like wix.AssemblyName.F_1234 we could use a binder function like 
wix.attribute(F_1234, AssemblyName).

This could easily be done by getting rid fo the regex already used for wix 
variables (which we know doesn't handle multiple dots, for example) and using 
String.Split('.', 2) like the preprocessor, then arra[1] through the same 
tokenizer for the preprocessor.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642717&aid=1764989&group_id=105970

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to