You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Mauro Canal <mc...@connext.ch> on 2000/05/12 22:33:23 UTC
ColumnFormatter in SQLProcessor not working?
Hi
I tried to use column formatting whit the SQLProcessor.
But it seems that passing the XSLT-Processor the <br/> tag disappears.
<?xml version="1.0" encoding="ISO-8859-1"?>
<?cocoon-process type="sql"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet href="foo-html.xsl" type="text/xsl"?>
<page>
.......
<query connection="fooConnection">
<column name="descr" type="text" format="br"/>
SELECT id, descr FROM bar
</query>
</page>
without the xslt-processing I get nearly the right output:
XML-Processor:
Kisahli neumix dark marobe<br> irundu gofela denim
XML- and XSLT-Processor:
Kisahli neumix dark marobe\n irundu gofela denim
Note, that the ColumnFormatter really gives "<br>" and not "<br/>"
within parent.appendChild(document.createElement("br")).
It's not a typo.
does someone have a hint for me?
many thanks
Mauro
RE: ColumnFormatter in SQLProcessor not working?
Posted by Mauro Canal <mc...@connext.ch>.
Hi donald
thanks for your advice. Actally I'm on closing this project right today
but will try the sql-taglib on the next one.
Mauro
> -----Original Message-----
> From: Donald Ball [mailto:balld@webslingerZ.com]
> Sent: Saturday, May 13, 2000 6:29 PM
> To: cocoon-users@xml.apache.org
> Subject: RE: ColumnFormatter in SQLProcessor not working?
>
>
> On Sat, 13 May 2000, Mauro Canal wrote:
>
> > sorry, I missed to add the br-template to the stylesheet. it was to
> > late yesterday ......
>
> you are likely to have more fun with the formatting stuff i added to the
> sql taglib. i got smart and am using the java.text.Format object API. if
> you go this route, let me know how you find the construction configuration
> syntax.
>
> - donald
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
RE: ColumnFormatter in SQLProcessor not working?
Posted by Donald Ball <ba...@webslingerZ.com>.
On Sat, 13 May 2000, Mauro Canal wrote:
> sorry, I missed to add the br-template to the stylesheet. it was to
> late yesterday ......
you are likely to have more fun with the formatting stuff i added to the
sql taglib. i got smart and am using the java.text.Format object API. if
you go this route, let me know how you find the construction configuration
syntax.
- donald
RE: ColumnFormatter in SQLProcessor not working?
Posted by Mauro Canal <mc...@connext.ch>.
sorry, I missed to add the br-template to the stylesheet.
it was to late yesterday ......
Mauro
> -----Original Message-----
> From: Mauro Canal [mailto:mcanal@connext.ch]
> Sent: Friday, May 12, 2000 10:33 PM
> To: cocoon-users@xml.apache.org
> Subject: ColumnFormatter in SQLProcessor not working?
>
>
> Hi
>
> I tried to use column formatting whit the SQLProcessor.
> But it seems that passing the XSLT-Processor the <br/> tag disappears.
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <?cocoon-process type="sql"?>
> <?cocoon-process type="xslt"?>
> <?xml-stylesheet href="foo-html.xsl" type="text/xsl"?>
>
> <page>
> .......
> <query connection="fooConnection">
> <column name="descr" type="text" format="br"/>
> SELECT id, descr FROM bar
> </query>
> </page>
>
> without the xslt-processing I get nearly the right output:
>
> XML-Processor:
> Kisahli neumix dark marobe<br> irundu gofela denim
>
> XML- and XSLT-Processor:
> Kisahli neumix dark marobe\n irundu gofela denim
>
> Note, that the ColumnFormatter really gives "<br>" and not "<br/>"
> within parent.appendChild(document.createElement("br")).
> It's not a typo.
>
> does someone have a hint for me?
>
> many thanks
> Mauro
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>