Dave,
Thanks very much for your trouble in replying. I have downloaded and read through the samples on the website, as well as much of the
API documentation. What I am attempting to do is probably most similar to the XPathWrapper sample in many ways, but there are some
fairly complicated things going on there that intimidated me into looking at an "easier to follow" sample, like SimpleXPathAPI, first. =:-)
You are indeed right that I misread the header file -- the API mentioned that the URI argument was for the purpose of giving the resolver
itself a base URI if needed and I simply omitted it (since I don't need one) rather than include a NULL. duh.
Again, thanks very much for the reply and I'll crack on!
Best regards,
Jerry Tennison
| [EMAIL PROTECTED]
07/12/2005 05:29 PM
|
To: [email protected] cc: Subject: Re: Using PrefixResolver with createXPath |
>
> XalanNamespacesStack theStack;
>
> theStack.addDeclaration (XalanDOMString ("FpML"), XalanDOMString
> ("http://www.fpml.org/2003/FpML-4-0"));
> theStack.addDeclaration (XalanDOMString ("xsi"), XalanDOMString
> ("http://www.w3.org/2001/XMLSchema-instance"));
>
> XalanNamespacesStack::PrefixResolverProxy theProxy (&theStack);
Well, the constructor signature for
XalanNamespacesStack::PrefixResolverProxy is:
PrefixResolverProxy(
const XalanNamespacesStack& theStack,
const XalanDOMString& theURI);
so you cannot just supply a pointer to a XalanNamespacesStack instance.
> The errors I am getting are of a parameter mismatch nature (similar to
that below),
> although I am making the calls according to the prototypes in the header
files.
>
> "RouterTable.cpp", line 33: Error: Cannot use
xalanc_1_9::XalanNamespacesStack*
> to initialize xalanc_1_9::XalanNamespacesStack::PrefixResolverProxy*.
I think you've misread the header file(s).
> I also wonder if there is a fundamental programming guide available for
Xalan (that
> would explain, for instance, the use of the XALAN_USING_XALAN and other
directives).
> Although the samples are illustrative, they are not comprehensive.
Unfortunately, all we have are the samples as the documentation on the web
site. Have you read through that?
http://xml.apache.org/xalan-c/
You might also look at the Xerces-C documentation as well, since much of
what we do mirrors what they do.
Dave
This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates.
