<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:8pt"><div>Gents,</div><div><br></div><div>Can anyone tell me why namespace-uri can't give me the namespace for this test file?</div><div><br></div><div><div><PMML version="4.0" xsi:schemaLocation="http://www.dmg.org/PMML-4_0 http://www.dmg.org/v4-0/pmml-4-0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.dmg.org/PMML-4_0"></div><div> <Header copyright="Steve Nunez" description="Sample for Namespace"></div><div> <Timestamp>2012-06-11T08:17:10.8</Timestamp></div><div> </Header></div><div></PMML></div><div><br></div><div><div>* (defparameter *ns-test*</div><div> (cxml:parse #p"ns-test.xml" (stp:make-builder)))</div><div><br></div><div>* (stp:namespace-uri *ns-test*)<br></div></div><div><br></div><div>This, and a few variations, give "There
is no applicable method for the generic function". </div><div><br></div><div>I suspect the answer is because I'm asking for the namespace of a <i>document</i>, whereas STP wants it for an <i>element</i>. That's fine, but different enough from the typical ways of XML processing to make figuring out how to use it rather difficult.</div><div><br></div><div>Does anyone have any working examples of processing documents typically found 'in the wild'? I've read the test.lisp file, but it simply programatically creates elements and then tests for them. Some real-world examples, common idioms and best practices would be <i>very</i> helpful.</div><div><br></div><div>Cheers,</div><div> - SteveN</div><div><br></div><div><br></div></div></div></body></html>