Re: Parsing HTML entities

2007-08-31 Thread Tobia Conforto
Never mind, I solved it "by hand" I wrote a Python script that takes a list of HTML entities and generates a huge tree of switch() { case: switch () { case: switch () { case: ... The generated Java code goes through a char[] in a single pass and when it recognizes an entity it pushes the associat

RE: Parsing HTML entities

2007-08-31 Thread Andrew Stevens
Oh, for crying out loud. Even after switching to plain text Hotmail still strips out my included XML :-( Let's try again - replace the square brackets below with the appropriate less-than and greater-than symbols. > From: [EMAIL PROTECTED] > Date: Fri, 31 Aug 2007 14:06:59 + > > Tobia Conf

RE: Parsing HTML entities

2007-08-31 Thread Andrew Stevens
> From: [EMAIL PROTECTED] > Date: Fri, 31 Aug 2007 14:06:59 + > > Tobia Conforto linux.it> writes: > >> I have a data source from which I get SAX text nodes into my pipeline >> that contain escaped HTML entities and tags. In Java syntax: >> >> "Lorem ipsum — dolor sit amet. Consectetuer"

Re: Parsing HTML entities

2007-08-31 Thread Joerg Heinicke
Tobia Conforto linux.it> writes: > I have a data source from which I get SAX text nodes into my pipeline > that contain escaped HTML entities and tags. In Java syntax: > > "Lorem ipsum — dolor sit amet. Consectetuer" > > or, in XML syntax: > > Lorem ipsum — dolor sit amet.
Consec

Parsing HTML entities

2007-08-31 Thread Tobia Conforto
Hello I have a data source from which I get SAX text nodes into my pipeline that contain escaped HTML entities and tags. In Java syntax: "Lorem ipsum — dolor sit amet. Consectetuer" or, in XML syntax: Lorem ipsum — dolor sit amet.
Consectetuer As you can see, the entities and ta

Re: remove dtd from xml?

2007-08-31 Thread Edward S
kool...thats wht I am doin rite now... wanted to know if thr was ne better way of doin it. looks like this is the best. thanks -Ed. On 8/31/07, Joerg Heinicke <[EMAIL PROTECTED]> wrote: > > On 31.08.2007 7:37 Uhr, Edward S wrote: > > > but what if the declaration already exists and i hv to ta

Re: remove dtd from xml?

2007-08-31 Thread Joerg Heinicke
On 31.08.2007 7:37 Uhr, Edward S wrote: but what if the declaration already exists and i hv to take it out? Just do an identity transformation. It's mentioned in the spec as well [1]. Maybe just a text-stream-processing using sed is possible as well and you don't need Cocoon. Joerg [1] ht

Re: remove dtd from xml?

2007-08-31 Thread Edward S
but what if the declaration already exists and i hv to take it out? -Ed. On 8/30/07, Joerg Heinicke <[EMAIL PROTECTED]> wrote: > > On 30.08.2007 14:23 Uhr, Edward S wrote: > > > whats the easiest way to remove a doctype declaration from a XML file? > > When serializing the XML? You have to add

ImageReader problem

2007-08-31 Thread Bhavya Sharma
Hi all i am working on lenya-1.2.4 with cocoon 2.1.7 on fc5 my problems is this that i am showing the images through ImageReader after resizing it and the size of each image is apporox 1.5 to 3 mb however on my page some times images are coming and some times it just shows the path/match pattern o