Re: Report stylesheet bug (was: Insert the SQL

Поиск
Список
Период
Сортировка
От Ezequias Rodrigues da Rocha
Тема Re: Report stylesheet bug (was: Insert the SQL
Дата
Msg-id 55c095e90611231010n66d6d7b8mf4c5138ff32ebbd1@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Report stylesheet bug (was: Insert the SQL  (Dave Page <dpage@postgresql.org>)
Ответы Re: Report stylesheet bug  (Dave Page <dpage@postgresql.org>)
Список pgadmin-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@postgresql.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="'
'" />
>     <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/

В списке pgadmin-support по дате отправления:

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: Report stylesheet bug (was: Insert the SQL
Следующее
От: Dave Page
Дата:
Сообщение: Re: Report stylesheet bug