Skip site navigation (1) Skip section navigation (2)

Re: Report stylesheet bug (was: [pgadmin-support] Insert the SQL

From: "Ezequias Rodrigues da Rocha" <ezequias(dot)rocha(at)gmail(dot)com>
To: "Dave Page" <dpage(at)postgresql(dot)org>
Cc: "pgadmin-support(at)postgresql(dot)org" <pgadmin-support(at)postgresql(dot)org>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Report stylesheet bug (was: [pgadmin-support] Insert the SQL
Date: 2006-11-23 18:10:47
Message-ID: 55c095e90611231010n66d6d7b8mf4c5138ff32ebbd1@mail.gmail.com (view raw or flat)
Thread:
Lists: pgadmin-hackerspgadmin-support
Dave, I really needs a css different from default. Do you have any ? I
don't know notthing about css neither xls but a little of xml.

I only want a nice documentation and a way to put some images to
personalize my document too.

Any help will be welcomed.

Regards
Ezequias

2006/11/23, Dave Page <dpage(at)postgresql(dot)org>:
> Ezequias Rodrigues da Rocha wrote:
> > I say comments not Report Notes.
> >
> > Source and Comment are definetly not ok.
> >
> > See my attached image.
>
> Ahh, sorry - misread your message. After spending an hour or so trying
> to figure it out with one of the guys here, I've come to the conclusion
> that we simply don't know why it's broken (I'm far from an expert in
> XSL). If anyone has an idea, I'm all ears...
>
> The stylesheet can be found at
> http://www.pgadmin.org/docs/1.6/default-xsl.html - the problem appears
> to be in the last two template, the first of which should call the
> second but apparently does not. The second is used for the notes and SQL
> at the bottom of the reports so is obviously not totally broken:
>
> <xsl:template match="*" mode="cells">
>    <xsl:param name="row" />
>      <td class="ReportTableValueCell">
>      <xsl:choose>
>        <xsl:when test="$row/@*[name() = current()/@id]|$row/*[name() =
> current()/@id] != ''">
>          <xsl:call-template name="substitute">
>            <xsl:with-param name="string" select="$row/@*[name() =
> current()/@id]|$row/*[name() = current()/@id]" />
>          </xsl:call-template>
>        </xsl:when>
>        <xsl:otherwise>
>          <xsl:text> </xsl:text>
>        </xsl:otherwise>
>      </xsl:choose>
>    </td>
> </xsl:template>
>
> <xsl:template name="substitute">
>     <xsl:param name="string" />
>     <xsl:param name="from" select="'&#xA;'" />
>     <xsl:param name="to">
>        <br />
>     </xsl:param>
>     <xsl:choose>
>        <xsl:when test="contains($string, $from)">
>           <xsl:value-of select="substring-before($string, $from)" />
>           <xsl:copy-of select="$to" />
>           <xsl:call-template name="substitute">
>              <xsl:with-param name="string"
> select="substring-after($string, $from)" />
>              <xsl:with-param name="from" select="$from" />
>              <xsl:with-param name="to" select="$to" />
>           </xsl:call-template>
>        </xsl:when>
>        <xsl:otherwise>
>           <xsl:value-of select="$string" />
>        </xsl:otherwise>
>     </xsl:choose>
> </xsl:template>
>
> Regards, Dave.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>


-- 
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
                                  Atenciosamente (Sincerely)
                        Ezequias Rodrigues da Rocha
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
A pior das democracias ainda é melhor do que a melhor das ditaduras
The worst of democracies is still better than the better of dictatorships
 http://ezequiasrocha.blogspot.com/

In response to

Responses

pgadmin-hackers by date

Next:From: Dave PageDate: 2006-11-23 19:44:20
Subject: Re: Report stylesheet bug
Previous:From: Dave PageDate: 2006-11-23 16:18:17
Subject: Re: Report stylesheet bug (was: [pgadmin-support] Insert the SQL

pgadmin-support by date

Next:From: Dave PageDate: 2006-11-23 19:44:20
Subject: Re: Report stylesheet bug
Previous:From: Dave PageDate: 2006-11-23 16:18:17
Subject: Re: Report stylesheet bug (was: [pgadmin-support] Insert the SQL

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group