OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [docbook-apps] [SOLVED] decide about parameters depending from thedocument id


Am Dienstag, den 14.03.2006, 01:00 +0100 schrieb Daniel Leidert:
> Am Dienstag, den 14.03.2006, 00:45 +0100 schrieb Daniel Leidert:
> 
> > I want to pass 2 parameters to several files. But which values these
> > parameters have should depend on the source file. I have a few source
> > files, for which I want to pass
> >
> > [..]
> >
> > Now my idea was the following to use in the stylesheet:
> > 
> > > <xsl:template match="refentry">
> > > [..]
> > > </xsl:template>
> > 
> > But it doesn't work. Can you give me a hint, what is wrong here?
> 
> Am I right, that I cannot define a global variable here and that I need
> to define them in the template, where they are used? Anyone with an
> idea, for another way to solve my issue?

Ok. Got it:

<xsl:param name="variablelist.term.break.after">
  <xsl:choose>
    <xsl:when test="//refentry/@id = 'fglrx_4x'">
      <xsl:value-of select="1"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="0"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:param>

etc.pp.

Regards, Daniel



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]