www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - XMLP

reply Michael Rynn <michaelrynn optusnet.com.au> writes:
The XMLP project is on DSource.

http://www.dsource.org/projects/xmlp

I have got as far getting it to pass all the namespace and XML 1.0/1.1 
test cases.


I have been having a look at the w3c XPath recommendations, but I am 
still baulking at getting deep into that.



-- 
michael  *^&^*
Nov 16 2009
parent reply Sam Hu <samhu.samhu nospam.com> writes:
Michael Rynn Wrote:

 The XMLP project is on DSource.
 
 http://www.dsource.org/projects/xmlp
 
 michael  *^&^*
I already downloaded and trie the test,but it seems it can't get passed under DMD2.036 due to "can not find object.d".
Nov 16 2009
parent reply "Denis Koroskin" <2korden gmail.com> writes:
On Tue, 17 Nov 2009 03:49:25 +0300, Sam Hu <samhu.samhu nospam.com> wrote:

 Michael Rynn Wrote:

 The XMLP project is on DSource.

 http://www.dsource.org/projects/xmlp
 michael  *^&^*
I already downloaded and trie the test,but it seems it can't get passed under DMD2.036 due to "can not find object.d".
Could you please check you DMD installation? Does a trivial Hello, World! application work?
Nov 16 2009
next sibling parent Sam Hu <samhu.samhu nospam.com> writes:
Denis Koroskin Wrote:
 Could you please check you DMD installation? Does a trivial Hello, World!  
 application work?
Yes.sure it works fine. ^-^
Nov 16 2009
prev sibling parent reply Sam Hu <samhu.samhu nospam.com> writes:
Denis Koroskin Wrote:
 Could you please check you DMD installation? Does a trivial Hello, World!  
 application work?
Sure .it work fine. Below is the build message: F:\laguangeD\xmlp\trunk>build2 F:\laguangeD\xmlp\trunk>set DROOT=F:\laguangeD\DLang\DTwo\ F:\laguangeD\xmlp\trunk>set PLIB=F:\laguangeD\DLang\DTwo\dmd\src\phobos\ F:\laguangeD\xmlp\trunk>set XP=xmlp\ F:\laguangeD\xmlp\trunk>set DCOMP=F:\laguangeD\DLang\DTwo\dmd\windows\bin\dmd F:\laguangeD\xmlp\trunk>set src=xmlp\format.d xmlp\xmlrules.d xmlp\recode.d xmlp \except.d xmlp\xmldom.d xmlp\input.d xmlp\pieceparser.d xmlp\delegater.d F:\laguangeD\xmlp\trunk>F:\laguangeD\DLang\DTwo\dmd\windows\bin\dmd -g -ofTestXm lConf xmlp\format.d xmlp\xmlrules.d xmlp\recode.d xmlp\except.d xmlp\xmldom.d xm lp\input.d xmlp\pieceparser.d xmlp\delegater.d F:\laguangeD\DLang\DTwo\dmd\src\p hobos\std/file.d XmlConf.d" object.d: Error: module object cannot read file 'object.d' F:\laguangeD\xmlp\trunk>F:\laguangeD\DLang\DTwo\dmd\windows\bin\dmd -g -ofTestBo oks xmlp\format.d xmlp\xmlrules.d xmlp\recode.d xmlp\except.d xmlp\xmldom.d xmlp \input.d xmlp\pieceparser.d xmlp\delegater.d F:\laguangeD\DLang\DTwo\dmd\src\pho bos\std/file.d ElementHandler.d" object.d: Error: module object cannot read file 'object.d' F:\laguangeD\xmlp\trunk>F:\laguangeD\DLang\DTwo\dmd\windows\bin\dmd -release -of RelXmlConf xmlp\format.d xmlp\xmlrules.d xmlp\recode.d xmlp\except.d xmlp\xmldom .d xmlp\input.d xmlp\pieceparser.d xmlp\delegater.d F:\laguangeD\DLang\DTwo\dmd\ src\phobos\std/file.d XmlConf.d" object.d: Error: module object cannot read file 'object.d' F:\laguangeD\xmlp\trunk>F:\laguangeD\DLang\DTwo\dmd\windows\bin\dmd -release -of RelBooks xmlp\format.d xmlp\xmlrules.d xmlp\recode.d xmlp\except.d xmlp\xmldom.d xmlp\input.d xmlp\pieceparser.d xmlp\delegater.d F:\laguangeD\DLang\DTwo\dmd\sr c\phobos\std/file.d ElementHandler.d" object.d: Error: module object cannot read file 'object.d' F:\laguangeD\xmlp\trunk>
Nov 16 2009
parent reply Jesse Phillips <jessekphillips gmail.com> writes:
On Mon, 16 Nov 2009 21:15:22 -0500, Sam Hu wrote:

 Denis Koroskin Wrote:
 Could you please check you DMD installation? Does a trivial Hello,
 World! application work?
Sure .it work fine.
This really sounds like a DMD installation issue than XMLP. Create a hello world program in an arbitrary location and try this command. F:\laguangeD\DLang\DTwo\dmd\windows\bin\dmd hello.d
Nov 16 2009
parent reply Sam Hu <samhu.samhu nospam.com> writes:
Jesse Phillips Wrote:

 
 This really sounds like a DMD installation issue than XMLP. Create a 
 hello world program in an arbitrary location and try this command.
 
 F:\laguangeD\DLang\DTwo\dmd\windows\bin\dmd hello.d
F:\DLang\DEx\D2Ex\anoy.d: module anoy; import std.stdio; void pause() { writeln("Press any key to continue..."); readln; } int main(string[] args) { int a=12; string str="hello"; int b=24; int c={return a+b;}(); writefln("The result is %d",c); pause; return 0; } F:\DLang\DEx\D2Ex>F:\DLang\DTwo\dmd\windows\bin\dmd anoy.d F:\DLang\DEx\D2Ex>dmd Digital Mars D Compiler v2.036 Copyright (c) 1999-2009 by Digital Mars written by Walter Bright Documentation: http://www.digitalmars.com/d/2.0/index.html Usage: dmd files.d ... { -switch } files.d D source files cmdfile read arguments from cmdfile -c do not link -cov do code coverage analysis -D generate documentation -Dddocdir write documentation file to docdir directory -Dffilename write documentation file to filename -d allow deprecated features -debug compile in debug code -debug=level compile in debug code <= level -debug=ident compile in debug code identified by ident -debuglib=name set symbolic debug library to name -defaultlib=name set default library to name -deps=filename write module dependencies to filename -g add symbolic debug info -gc add symbolic debug info, pretend to be C -H generate 'header' file -Hddirectory write 'header' file to directory -Hffilename write 'header' file to filename --help print help -Ipath where to look for imports -ignore ignore unsupported pragmas -inline do function inlining -Jpath where to look for string imports -Llinkerflag pass linkerflag to link -lib generate library rather than object files -man open web browser on manual page -nofloat do not emit reference to floating point -O optimize -o- do not write object file -odobjdir write object & library files to directory objdir -offilename name output file to filename -op do not strip paths from source file -profile profile runtime performance of generated code -quiet suppress unnecessary messages -release compile release version -run srcfile args... run resulting program, passing args -safe safe memory model -unittest compile in unit tests -v verbose -version=level compile in version code >= level -version=ident compile in version code identified by ident -vtls list all variables going into thread local storage -w enable warnings -X generate JSON file -Xffilename write JSON file to filename F:\DLang\DEx\D2Ex>F:\laguangeD\dlang\dtwo\dmd\windows\bin\dmd anoy.d object.d: Error: module object cannot read file 'object.d' F:\DLang\DEx\D2Ex> What does this mean?I can compile all my d2 programs just use: dmd *.d under any path: Regards, Sam
Nov 16 2009
parent reply Michael Rynn <michaelrynn optusnet.com.au> writes:
 F:\DLang\DEx\D2Ex>F:\laguangeD\dlang\dtwo\dmd\windows\bin\dmd anoy.d
 object.d: Error: module object cannot read file 'object.d'
 
 F:\DLang\DEx\D2Ex>
 
 What does this mean?I can compile all my d2 programs just use: dmd *.d
 under any path:
I remember getting that same message compiling with DMD. Especially if I had played around with the D compiler sc.ini file trying to compile Tango from source with the latest D compiler. What it means is the compiler tries to search its imports paths, which is set in the sc.ini file with -I and can be overridden in the command line. I then searched for files called object.* in src and imports and pointed the -I paths there to see what would happen. After it goes away I forget about it. My latest sc.ini says. DFLAGS="-I% P%\..\..\src\phobos" "-I% P%\..\..\src\druntime\import" Now there is a file called object.di inside ..\src\druntime\import. Nowadays I just take the plain vanilla setup, keeping seperate distribution trees for phobos dmd & dmd2, and dmd tango. My basic windows dmd setup. When I test with a new version of dmd2, say 2.036, I replace an entire C:\D\dmd2 folder with the new distribution zip. I run the command prompt cmd.exe, CD to the source directory where I have a build*.bat files. The batch files run the dmd compiler by calling it with its full path C:\D\dmd2\windows\bin\dmd.exe , and usually the dmd2 compiler figures out the standard import locations and libraries from its relative path using the command line invocation argument. If I am using tango I have downloaded the current approved windows binary release complete with matching dmd 1.xxx version. Since it also works out of the box, my tango batch path is C:\D\tango\bin\dmd.exe, and the sc.ini therein does tango paths. If I want a convenience of typing dmd directly , I set up batch files to configure the current PATH. REM StartMyD2Env.bat in C:\bin\codeblocks\ PATH=c:\D\dmd2\windows\bin;c:\D\dm\bin;%windir%\system32;%windir%;%windir% \system32\wbem start "D2 environment" Codeblocks.exe and run it from a shortcut cmd.exe /K c:\bin\StartMyD2Env.bat Otherwise every old dmd.exe and dll, and other developments systems in forgotten folders in my system path want to get in on the act. -- michael *^&^*
Nov 17 2009
parent Sam Hu <samhu.samhu nospam.com> writes:
Michael Rynn Wrote:
My latest sc.ini says.

DFLAGS="-I% P%\..\..\src\phobos" "-I% P%\..\..\src\druntime\import"

 -- 
 michael  *^&^*
sc.ini for DMD2.036: [Version] version=7.51 Build 020 [Environment] LIB="% P%\..\lib;% P%\..\..\..\dsss\lib" DFLAGS="-I% P%\..\..\src\phobos" "-I% P%\..\..\src\druntime\import" "-I% P%\..\..\..\dsss\include\d" "-I% P%\..\..\import" LINKCMD=% P%\link.exe D2 folder structure: \Dlang\ \Dlang\dtwo \Dlang\dtwo\dmd\windows\bin \Dlang\dtwo\dmd\import\dfl \Dlang\dtwo\dsss\bin D1,Tango: \Dlang\tangoD\ \Dlang\tangoD\dmd\windows\bin \Dlang\tangod\dsss\bin The system environment path only includes d2 configuration: \Dlang\dtwo\dmd\windows\bin \Dlang\dtwo\dsss\bin So was I missing something? Thank you so much for your help!
Nov 17 2009