Click here to Skip to main content
14,638,198 members
Home » Discussions » XML / XSL


QuestionNot Able to validate the MSXML Pin
Kuldeep Bhatnagar5-Sep-08 0:30
MemberKuldeep Bhatnagar5-Sep-08 0:30 
AnswerRe: Not Able to validate the MSXML Pin
Erik Westermann10-Sep-08 4:28
professionalErik Westermann10-Sep-08 4:28 
QuestionXML transform to SQL by XSL Pin
AndieDu4-Sep-08 16:18
MemberAndieDu4-Sep-08 16:18 
AnswerRe: XML transform to SQL by XSL Pin
led mike5-Sep-08 4:57
Memberled mike5-Sep-08 4:57 
GeneralRe: XML transform to SQL by XSL Pin
AndieDu7-Sep-08 13:47
MemberAndieDu7-Sep-08 13:47 
GeneralRe: XML transform to SQL by XSL Pin
led mike8-Sep-08 5:02
Memberled mike8-Sep-08 5:02 
GeneralRe: XML transform to SQL by XSL Pin
AndieDu8-Sep-08 13:38
MemberAndieDu8-Sep-08 13:38 
QuestionUsing XML to represent parameter data (VST) Pin
Leslie Sanford31-Aug-08 16:41
MemberLeslie Sanford31-Aug-08 16:41 
I've been writing VST[^] plugins for the past year and a half or so.

Every VST plugin has a set of parameter values each having the range of [0, 1]. To be more specific, these parameter values are what the host in which the plugin is running understands. It's up to each plugin to transform these normalized parameter values into values it can use. For example, a plugin may have an amplitude parameter and want to transform it to a range of [0, 10] using an exponential curve. Another example is a plugin that needs to map parameter values to a set of choices, e.g. Sine, Cosine, Square, Sawtooth, etc...

With VST v2.4, Steinberg implemented vstxml for representing parameter data in XML. However, I find that the schema is not nearly rich enough to represent the wide range of VST parameter data. So I thought I'd take a stab at it myself. The end goal being one in which a plugin could read an XML file and configure its parameters accordingly.

The trouble is that I know very little about modeling data with XML. So I thought I'd throw out a couple of attempts and get some feedback, hopefully pointing me in the right direction.

Here's an example I came up with of a VST parameter represented in XML:

<parameter id="0" name="Waveform" type="selection">
    <entry name="Sine"/>
    <entry name="Cosine"/>
    <entry name="Triangle"/>

The above declares a parameter with the id of 0, the name Waveform, and the type selection. The selection type indicates that the parameter represents a selection of choices. The entry element represents a choice.

A plugin parsing this would know to transform the normalized [0, 1] parameter value given to it by the host into an integer in the range of [0, 2], mapping each integer value to the appropriate element, e.g. a value of 0 would indicate the Sine waveform has been chosen.

Here's another example:

<parameter id="1" name="Level" curve="exponential" min="0" max="10" \>

This describes a parameter with an id of 1, the name Level, the curve exponential, and having the range of [0, 10].

A plugin parsing this would know to transform the normalized [0, 1] parameter value given to it by the host to a floating point number in the range of [0, 10] using an exponential curve (value * value * 10).

Does this seem to be a resonable approach?
QuestionGeocoding using google service Pin
mkanna29-Aug-08 6:21
Membermkanna29-Aug-08 6:21 
AnswerRe: Geocoding using google service Pin
led mike2-Sep-08 5:54
Memberled mike2-Sep-08 5:54 
QuestionSchema and derived types Pin
Russell Jones29-Aug-08 4:56
MemberRussell Jones29-Aug-08 4:56 
AnswerRe: Schema and derived types Pin
Erik Westermann10-Sep-08 4:45
professionalErik Westermann10-Sep-08 4:45 
Questionhow to get XML file. Pin
AtulRane28-Aug-08 19:14
MemberAtulRane28-Aug-08 19:14 
AnswerRe: how to get XML file. Pin
Russell Jones29-Aug-08 4:51
MemberRussell Jones29-Aug-08 4:51 
AnswerRe: how to get XML file. Pin
Michael Dunn29-Aug-08 13:30
sitebuilderMichael Dunn29-Aug-08 13:30 
Question[Message Deleted] Pin
vankayalapati27-Aug-08 19:04
Membervankayalapati27-Aug-08 19:04 
AnswerRe: how to add event handling in xslt Pin
led mike28-Aug-08 5:11
Memberled mike28-Aug-08 5:11 
QuestionReading values from unformatted xml Pin
indian14325-Aug-08 23:40
Memberindian14325-Aug-08 23:40 
AnswerRe: Reading values from unformatted xml Pin
Christian Graus26-Aug-08 0:50
mveChristian Graus26-Aug-08 0:50 
Questionxml to xml [modified] Pin
Member 470396625-Aug-08 5:16
MemberMember 470396625-Aug-08 5:16 
AnswerRe: xml to xml Pin
led mike26-Aug-08 5:40
Memberled mike26-Aug-08 5:40 
AnswerRe: xml to xml Pin
led mike27-Aug-08 6:25
Memberled mike27-Aug-08 6:25 
QuestionXSL copy-of problem! Pin
Saul Johnson24-Aug-08 5:46
MemberSaul Johnson24-Aug-08 5:46 
AnswerRe: XSL copy-of problem! Pin
Frank Horn25-Aug-08 8:11
MemberFrank Horn25-Aug-08 8:11 
GeneralRe: XSL copy-of problem! Pin
Saul Johnson25-Aug-08 11:22
MemberSaul Johnson25-Aug-08 11:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.