You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Pétur Sæmundsen <pe...@stofan.is> on 2000/09/27 20:57:44 UTC

How can I extract markup with SQL-taglib ?

I am trying to populate a <description>-tag, I am using, with SQL-taglib.  I
have in my DB HTML-tags (<html:xxx>) which  define better the content of the
<descripton>-tag.  When I extract the HTML-tags from the DB they resolve to
HTML-entities.  For example <html:table> becomes &lt;html:table&gt.

1)Is there any way around this ?
2)Is it plane stupid to have markup in your DB ?

Thank you all
Petur Saemundsen


RE: How can I extract markup with SQL-taglib ?

Posted by Russ White <ru...@earthlink.net>.
metadata is metadata

markup is not metadata :)

don't confuse the two, they are similar. (In fact a lot of metadata is XML, but
in that case XML is not markup but data)

And if you are talking about static files you are right. Static markup is fine.
Also markup that is intended to be applied as a template such as xsl must be
stored in a filesystem and that is fine too. :)

but... storing markup in data that is meant to be dynamic is not the best
design.

Static markup in dynamic data is still just static.

I prefer the flexibility of applying templates to dynamic data to create dynamic
markup.



> -----Original Message-----
> From: Donald Ball [mailto:balld@webslingerZ.com]
> Sent: Wednesday, September 27, 2000 4:13 PM
> To: cocoon-users@xml.apache.org
> Subject: RE: How can I extract markup with SQL-taglib ?
>
>
> On Wed, 27 Sep 2000, Russ White wrote:
>
> > A lot of people maybe. But then people do mighty strange things.
> >
> > But I wouldn't do it. :)
> >
> > That's what separating data/logic and presentation is all about.
> >
> > embedding markup in data is a step backward.
>
> you're kidding, right? i disagree strongly. you don't think "embedding
> markup in data" is wrong when you're working with files, right? why would
> it be any different when working with a database? you can use a database
> as sort of a filesystem with metadata, you know - oftimes a very useful
> approach.
>
> - donald
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>


RE: How can I extract markup with SQL-taglib ?

Posted by Donald Ball <ba...@webslingerZ.com>.
On Wed, 27 Sep 2000, Russ White wrote:

> A lot of people maybe. But then people do mighty strange things.
> 
> But I wouldn't do it. :)
> 
> That's what separating data/logic and presentation is all about.
> 
> embedding markup in data is a step backward.

you're kidding, right? i disagree strongly. you don't think "embedding
markup in data" is wrong when you're working with files, right? why would
it be any different when working with a database? you can use a database
as sort of a filesystem with metadata, you know - oftimes a very useful
approach.

- donald


RE: How can I extract markup with SQL-taglib ?

Posted by Uli Mayring <ul...@denic.de>.
On Wed, 27 Sep 2000, Russ White wrote:

> embedding markup in data is a step backward.

I agree, it's counter-productive. Unless you have an XML database like
Tamino, then it makes a lot of sense, because data and logic is seperated
in the database.

Ulrich

-- 
Ulrich Mayring
DENIC eG, Softwareentwicklung


RE: How can I extract markup with SQL-taglib ?

Posted by Russ White <ru...@earthlink.net>.
A lot of people maybe. But then people do mighty strange things.

But I wouldn't do it. :)

That's what separating data/logic and presentation is all about.

embedding markup in data is a step backward.

> -----Original Message-----
> From: Donald Ball [mailto:balld@webslingerZ.com]
> Sent: Wednesday, September 27, 2000 3:59 PM
> To: cocoon-users@xml.apache.org
> Subject: RE: How can I extract markup with SQL-taglib ?
> 
> 
> On Wed, 27 Sep 2000, Russ White wrote:
> 
> > #2 :)
> 
> aw, c'mon, not necessarily. a lot of people have (X)HTML fragments stored
> in their databases.
> 
> - donald
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 
> 

RE: How can I extract markup with SQL-taglib ?

Posted by Donald Ball <ba...@webslingerZ.com>.
On Wed, 27 Sep 2000, Russ White wrote:

> #2 :)

aw, c'mon, not necessarily. a lot of people have (X)HTML fragments stored
in their databases.

- donald


RE: How can I extract markup with SQL-taglib ?

Posted by Russ White <ru...@earthlink.net>.
#2 :)

> -----Original Message-----
> From: Pétur Sæmundsen [mailto:petur@stofan.is]
> Sent: Wednesday, September 27, 2000 2:58 PM
> To: cocoon-users@xml.apache.org
> Subject: How can I extract markup with SQL-taglib ?
>
>
> I am trying to populate a <description>-tag, I am using, with SQL-taglib.  I
> have in my DB HTML-tags (<html:xxx>) which  define better the content of the
> <descripton>-tag.  When I extract the HTML-tags from the DB they resolve to
> HTML-entities.  For example <html:table> becomes &lt;html:table&gt.
>
> 1)Is there any way around this ?
> 2)Is it plane stupid to have markup in your DB ?
>
> Thank you all
> Petur Saemundsen
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>


Re: How can I extract markup with SQL-taglib ?

Posted by Donald Ball <ba...@webslingerZ.com>.
On Wed, 27 Sep 2000, [iso-8859-1] P�tur S�mundsen wrote:

> I am trying to populate a <description>-tag, I am using, with SQL-taglib.  I
> have in my DB HTML-tags (<html:xxx>) which  define better the content of the
> <descripton>-tag.  When I extract the HTML-tags from the DB they resolve to
> HTML-entities.  For example <html:table> becomes &lt;html:table&gt.
> 
> 1)Is there any way around this ?
> 2)Is it plane stupid to have markup in your DB ?

try using the new development esql logicsheet and the get-xml method.

- donald