<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:8pt"><div><div style="display: block; ">Greetings again,</div><div style="display: block; "><br></div><div style="display: block; ">Perhaps a good example would be a real one. I'm starting with some simple functions, such as obtaining the model name, <span class="yshortcuts" id="lw_1339386570_0">algorithm</span>, etc, from the attached XML example. Can anyone provide an exemplary method for doing this? Below is my naive attempt, which are all failing miserably:</div><div style="display: block; "><br></div><div style="display: block; "><div style="display: block; ">(defun algorithm-name (model)</div><div style="display: block; "> "Returns the algorithm for the model"</div><div style="display: block; "> (stp:filter-recursively (stp:of-name "algorithmName" (stp:namespace-uri model)) model))</div><div style="display: block;
"><br></div><div style="display: block; ">I know this one will (if it were working) return a list, but since I can't get past the namespace problem haven't bothered to go any further. That function, I assume, is a rather trivial one for someone with some good examples or knowledge to work from. Here's a slightly more difficult function:</div><div style="display: block; "><br></div><div style="display: block; ">(defun model-coefficient-list (model)</div><div style="display: block; "> "Returns a nested list of the following structure: (<model-name>-coefficients (coefficient1 coefficient1-value) (coefficient1 coefficient2-value) ... (coefficientn coefficientn-value))"</div><div style="display: block; "> ...)</div><div style="display: block; "><br></div><div style="display: block; ">Something like this would be good to put on the STP website.</div><div style="display: block; "><br></div><div style="display: block; ">Regards,</div><div
style="display: block; "><span class="yiv1950581104Apple-tab-span" style="white-space: pre; "> </span>- Steve</div></div></div></div></body></html>