Parsing DTDs


T

Tom Anderson

Hello!

I would like to parse XML DTDs. The goal is to be able to validate
XML-like object structures against DTDs in a fairly flexible way, although
i can get from a parsed DTD to a validation engine myself, so that's not
an essential feature of the parser (although it would be nice!). What
should i do?

A bit of googling revealed that the xmlproc package contains a DTD parser
that looks like it does just what i want, and that xmlproc became PyXML,
and that PyXML is no longer maintained.

Is there a DTD parser that is being maintained? Or does it not really
matter that PyXML is no longer maintained, given that it's not like the
DTD spec has changed very much?

Thanks,
tom
 
Ad

Advertisements

P

Piet van Oostrum

Tom Anderson said:
TA> Hello!
TA> I would like to parse XML DTDs. The goal is to be able to validate XML-like
TA> object structures against DTDs in a fairly flexible way, although i can get
TA> from a parsed DTD to a validation engine myself, so that's not an essential
TA> feature of the parser (although it would be nice!). What should i do?
TA> A bit of googling revealed that the xmlproc package contains a DTD parser
TA> that looks like it does just what i want, and that xmlproc became PyXML,
TA> and that PyXML is no longer maintained.
TA> Is there a DTD parser that is being maintained? Or does it not really
TA> matter that PyXML is no longer maintained, given that it's not like the DTD
TA> spec has changed very much?

http://codespeak.net/lxml/validation.html#dtd
 
K

Ken Seehart

A couple years ago I stumbled upon an interesting technology but I can't
seem to find it, and I can remember what it is called. Unfortunately
this makes it difficult to search for. I am am aware of several partial
matches (items that meet a subset of the requirement listed below).
Does anyone know what does /all/ of the following?

1. Works on at least FF and IE on XP and Linux out of the box, probably
others

2. Does not require /any/ plugin download at all of any kind to view
(this disqualifies flash, svg, silverlight, java, and others)

3. If you go to the web page for the first time on a freshly installed
operating system, without admin privileges, you will see the
functionality listed below immediately, and with no downloaded plugins
and installers. (I apologize for the redundancy, but I want to
preemptively avoid a flood of non-applicable responses).

4. Graphics, including sprite animation

5. Dynamic response to mouse motion: dragging sprites for example

6. Programmable in Python, of course

Hints from what I can recall:
- Built from javascript as it's raw material under the hood (after all,
it can't very well be anything else given requirements 1,2,3)
- Seems quite magical since I didn't know the necessary graphical raw
materials existed in javascript
- I think it's based on Ajax, but I can't seem to find a relevant python
demo of it due to too much clutter in my google searches

Ken
 
C

CTO

A couple years ago I stumbled upon an interesting technology but I can't
seem to find it, and I can remember what it is called.  Unfortunately
this makes it difficult to search for.  I am am aware of several partial
matches (items that meet a subset of the requirement listed below).  
Does anyone know what does /all/ of the following?

1. Works on at least FF and IE on XP and Linux out of the box, probably
others

2. Does not require /any/ plugin download at all of any kind to view
(this disqualifies flash, svg, silverlight, java, and others)

3. If you go to the web page for the first time on a freshly installed
operating system, without admin privileges, you will see the
functionality listed below immediately, and with no downloaded plugins
and installers.  (I apologize for the redundancy, but I want to
preemptively avoid a flood of non-applicable responses).

4. Graphics, including sprite animation

5. Dynamic response to mouse motion: dragging sprites for example

6. Programmable in Python, of course

Hints from what I can recall:
- Built from javascript as it's raw material under the hood (after all,
it can't very well be anything else given requirements 1,2,3)
- Seems quite magical since I didn't know the necessary graphical raw
materials existed in javascript
- I think it's based on Ajax, but I can't seem to find a relevant python
demo of it due to too much clutter in my google searches

Ken

Probably thinking of Pyjamas- <URL: http://pyjamas.sourceforge.net/>.
It lets you interact with canvas- <URL: http://www.blobsallad.se/>-
without writing any javascript.

Geremy Condra
 
Ad

Advertisements

K

Ken Seehart

CTO said:
Probably thinking of Pyjamas- <URL: http://pyjamas.sourceforge.net/>.
It lets you interact with canvas- <URL: http://www.blobsallad.se/>-
without writing any javascript.

Geremy Condra
Yeah, looks like pyjamas is probably it. Thanks.

OMG, http://www.blobsallad.se is way too cool, .but it's javascript, so
I'm assuming the idea is that it could have been done in python and
converted to javascript using pyjamas.

Anyway, I think I need to be more specific about the sprites:

7. Supports drawing semi-transparent bitmap sprites (preferably png)

Anyone happen to know where I can find an online example of animating
with sprites (within the constraints of 1-7 above)?

Thanks,
- Ken
 

Top