forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Schäfer <johannes.schae...@uidesign.de>
Subject sDocBook <note><title>...</title></note>
Date Mon, 26 Jul 2004 15:19:23 GMT
Hi!
sDockBook allows a <title> within a <note>. 
The code below shows what I've come up with
(in common/.../document2html).

We use it like this:
<note>
  <title>: Title for this note</title>
  ...
</note>
The ":" is needed since I don't know 
how to put this into XSL:
  if( title ) ": ".title 
or even without the "Note".

Anybody may help?
Should I open an issue for this?

Cheers 
Johannes

  <xsl:template match="note | warning | fixme">
    <xsl:apply-templates select="@id"/>
    <div class="frame {local-name()}">
      <div class="label">
        <xsl:choose>
          <xsl:when test="@label"><xsl:value-of select="@label"/></xsl:when>
          <xsl:when test="local-name() = 'note'">Note<!-- 
js --><xsl:value-of select="title"/>
		  </xsl:when>
          <xsl:when test="local-name() = 'warning'">Warning</xsl:when>
          <xsl:otherwise>Fixme (<xsl:value-of
select="@author"/>)</xsl:otherwise>
        </xsl:choose>
      </div>
      <div class="content">
        <xsl:apply-templates/>
      </div>
    </div>
  </xsl:template>

-- 
User Interface Design GmbH * Teinacher Str. 38 * D-71634 Ludwigsburg
Fon +49 (0)7141 377 000 * Fax  +49 (0)7141 377 00-99
Geschäftsstelle: User Interface Design GmbH * Lehrer-Götz-Weg 11 * D-81825
München
www.uidesign.de


Mime
View raw message