REPOST: HTML Tags from a database field

2008-01-08 Thread Derek Hohls
(POSTED ON: 11 Dec 2007 - but no reply... possibly due to Christmas?!) I am using the SQLTransformer from Cocoon 2.1.8 to extract data from text fields in a database. At present, are being returned by the transformer (i.e. before any downstream alteration) as I know XSP has an option

Re: REPOST: HTML Tags from a database field

2008-01-09 Thread Tobia
Derek Hohls wrote: I am using the SQLTransformer from Cocoon 2.1.8 to extract data from text fields in a database. At present, are being returned by the transformer (i.e. before any downstream alteration) as I use the HTMLTransformer for that purpose, with a couple of XSLT styl

Re: REPOST: HTML Tags from a database field

2008-01-09 Thread Derek Hohls
Tobia Whew! Sounds like a lot of work for what I thought would be a simple config issue. Any chance you could make the stylesheets available - maybe upload them to the wiki? Thanks Derek >>> Tobia <[EMAIL PROTECTED]> 2008/01/09 05:17 PM >>> Derek Hohls wrote: > I am using the SQLTransformer

Re: REPOST: HTML Tags from a database field

2008-01-10 Thread Tobia
Derek Hohls wrote: Tobia wrote: I use the HTMLTransformer for that purpose, with a couple of XSLT stylesheets before and after it. The first one writes tags around each piece of escaped HTML. Then the HTMLTransformer is instructed to only transform text nodes inside those tags. Final

Re: REPOST: HTML Tags from a database field

2008-01-12 Thread Grzegorz Kossakowski
Derek Hohls pisze: > Tobia > > Whew! Sounds like a lot of work for what I thought would be a > simple config issue. Any chance you could make the stylesheets > available - maybe upload them to the wiki? I just looked at the code of SQLTransformer and found this, which is rather interesting t

Re: REPOST: HTML Tags from a database field

2008-01-13 Thread Derek Hohls
Grzegorz That could be the issue - the database field may *contain* XML tags but does not necessarily *start* with one. Maybe I could wrap the whole field in a "" tag before posting it, although that seems a little clumsy - I agree it would be easier to specifically request a field as XML, with

Re: REPOST: HTML Tags from a database field

2008-01-16 Thread Grzegorz Kossakowski
Derek Hohls pisze: > Grzegorz > > That could be the issue - the database field may *contain* XML tags > but does not necessarily *start* with one. Maybe I could wrap the > whole field in a "" tag before posting it, although that seems a > little clumsy - I agree it would be easier to specificall

Re: REPOST: HTML Tags from a database field

2008-01-16 Thread Derek Hohls
Grzegorz Sadly my Java skills are not up to this task. I guess I will have to go for the quick-and-nasty approach for now (which I would have to do anyway, as upgrading Cocoon to the ultra-latest version is not an option on the current project). Thanks Derek >>> On 2008/01/16 at 10:51, in mess

Re: REPOST: HTML Tags from a database field

2008-01-30 Thread Joerg Heinicke
On 12.01.2008 19:06, Grzegorz Kossakowski wrote: I just looked at the code of SQLTransformer and found this, which is rather interesting to you: protected void serializeData(String value) throws SQLException, SAXException { if (value != null) { value

Re: REPOST: HTML Tags from a database field

2008-01-30 Thread Derek Hohls
I hope that really was a joke!! >>> On 2008/01/31 at 07:17, in message <[EMAIL PROTECTED]>, Joerg Heinicke >>> <[EMAIL PROTECTED]> wrote: On 12.01.2008 19:06, Grzegorz Kossakowski wrote: > I just looked at the code of SQLTransformer and found this, which is rather > interesting to you: >