Hey Folks...
First off I have generateDS installed but I always have to run it from
the generateDS directory that I installed from. Do I have to put it in
my windows PATH to bget picked up in other directories or is this a
python path issue?
P:\My Documents\development>python generateDS.py
python: can't open file 'generateDS.py': [Errno 2] No such file or
directory
But running it in the next directory works...
Next,
I got the MSExcel XSD's from, the developers corner or what ever and
have them localy. Does anyone know if there is an only repo of these
XSD's I can point to through URL. Can generateDS.py point to remote/web
xsd's?
1. When I try running the excel xsd this is what I get
P:\My Documents\development\generateDS>python generateDS.py -a "xsd:" -o
excel.py -s excelsub.py "C:
\Microsoft Office 2003 Developer Resources\Microsoft Office 2003 XML
Reference Schemas\SpreadsheetML
Schemas\excel.xsd"
***
*** Error: Must install lxml (v. >= 2.0) or use "--no-process-includes".
*** Override this error by modifying the above test.
*** But, see the docs before doing so:
***
http://www.rexx.com/~dkuhlman/generateDS.html#include-file-processing
***
Traceback (most recent call last):
File "generateDS.py", line 4151, in <module>
main()
File "generateDS.py", line 4146, in main
processIncludes, superModule=superModule)
File "generateDS.py", line 4010, in parseAndGenerate
import process_includes
File "P:\My Documents\development\generateDS\process_includes.py",
line 50, in <module>
raise RuntimeError, 'Must install lxml (v. >= 2.0) or use
"--no-process-includes".'
RuntimeError: Must install lxml (v. >= 2.0) or use
"--no-process-includes".
Fair enough, so I add the --no-process-includes. Now there is no
<include ...> elements so I figure I am safe, but there are a bunch of
references to other XSD's through the name spaces. Does this matter?...
I still get an error...
P:\My Documents\development\generateDS>python generateDS.py -a "xsd:" -o
excel.py -s excelsub.py --n
o-process-includes "C:\Microsoft Office 2003 Developer
Resources\Microsoft Office 2003 XML Reference
Schemas\SpreadsheetML Schemas\excel.xsd"
Traceback (most recent call last):
File "generateDS.py", line 4151, in <module>
main()
File "generateDS.py", line 4146, in main
processIncludes, superModule=superModule)
File "generateDS.py", line 4023, in parseAndGenerate
parser.parse(infile)
File "c:\python26\lib\xml\sax\expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "c:\python26\lib\xml\sax\xmlreader.py", line 123, in parse
self.feed(buffer)
File "c:\python26\lib\xml\sax\expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "c:\python26\lib\xml\sax\expatreader.py", line 301, in
start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "generateDS.py", line 948, in startElement
parentDict = self.stack[-1].getAttrs()
AttributeError: SimpleTypeElement instance has no attribute 'getAttrs'
Now I am past my knowledge of XML to trouble shoot this...
I saw lots of reference to SimpleType
http://www.rexx.com/~dkuhlman/generateDS.html#simpletype but again,
being an ameture this stuff did not quite make sense.
Anyone offer a hand?
Cheers
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users