Hi Dave,
1. I'm using VC7.1.3088 (.Net framework SP1) on Windows XP Professional.
2. Here I did not put it correctly. (pls. forgive me as I'm quite new to XML,
Xalan and XPath).
Pls. see the problem I'm into below:
I have some XML like:
<A>
<B>
<C1 id="id1">1</C1>
<C2 id="id2">2</C2>
</B>
<D id="id('id1')">3</D>
</A>
When I give XPath expression like : /A/D/@id , I need to get value 1. The value
1 will be coming from the element C1 whose id is "id1".
Please let me know how I can do the same, and how I can get the desired value
using the sample applications with Xalan.
Currently I'm getting the string output id('id1'). In fact I need to get value
1 (this corresponds to the value of the element whose id is id1).
Please note that in my previous mail I mentioned that it worked for other
tools, but that is NOT correct. I gave a wrong expression. Sorry about that.
Best Regards.
On Mon, 12 Feb 2007 David Bertoni wrote :
>Indrajit Bhattacharya wrote:
>>Hi,
>>
>>1. I am trying to use Xalan 1.10.0 with Xerces 2.7.0. But I'm unable to
>>compile Xalan source as LocalMsgIndex.hpp is not getting generated during
>>compilation time. Any idea how to resolve the issue ?
>
>It's generated by the build process, so I don't know why it wouldn't be
>working in your environment. If you provide more information about your OS
>and compiler, someone may be able to help
>>
>>2. I also downloaded the Xalan binaries. When I try to run SimpleXPathAPI
>>program, its not returning proper value for the input XPath ex-pression.
>>Other XML tools are returning proper value for the same XPath ex-pression
>>though. But this sample application is returning big a blank string. Please
>>let me know what is going wrong.
>
>Without seeing the inputs you provided to the sample program, it's hard to say
>what the problem is. You'll have to provide more information if you want help.
>
>Dave