You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by sl...@apache.org on 2002/09/19 00:50:38 UTC

cvs commit: httpd-2.0/docs/manual/style/xsl quickreference.xsl

slive       2002/09/18 15:50:38

  Modified:    docs/manual/style/xsl quickreference.xsl
  Log:
  A little fine-tuning.
  
  Revision  Changes    Path
  1.2       +5 -12     httpd-2.0/docs/manual/style/xsl/quickreference.xsl
  
  Index: quickreference.xsl
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/quickreference.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -d -b -u -r1.1 -r1.2
  --- quickreference.xsl	18 Sep 2002 22:31:23 -0000	1.1
  +++ quickreference.xsl	18 Sep 2002 22:50:38 -0000	1.2
  @@ -5,8 +5,8 @@
                     xmlns="http://www.w3.org/1999/xhtml">
   
     <!--                                                    -->
  -  <!-- <directiveindex>                                   -->
  -  <!-- Builds the directive index page                    -->
  +  <!-- <quickreference>                                   -->
  +  <!-- Builds the directive quickreference page           -->
     <!--                                                    -->
     <xsl:template match="quickreference">
       <html xml:lang="{$messages/@lang}" lang="{$messages/@lang}">
  @@ -27,21 +27,14 @@
   
           <div id="directive-list">
           <table class="qref">
  -        <tr><th><a href="directive-dict.html#Syntax"><xsl:value-of select="$messages/message[@name='syntax']"/></a></th>
  -           <th><a href="directive-dict.html#Default"><xsl:value-of select="$messages/message[@name='default']"/></a></th>
  -           <th></th><th></th></tr>
            <xsl:for-each select="document(/*/modulefilelist/modulefile)/modulesynopsis/directivesynopsis[not(@location)]">
            <xsl:sort select="name"/>
   
   
               <xsl:variable name="rowpos">
                 <xsl:choose>
  -                <xsl:when test="position() mod 2 = 0">
  -                  even
  -                </xsl:when>
  -                <xsl:otherwise>
  -                  odd
  -                </xsl:otherwise>
  +                <xsl:when test="position() mod 2 = 0">even</xsl:when>
  +                <xsl:otherwise>odd</xsl:otherwise>
                 </xsl:choose>
              </xsl:variable>
   
  @@ -82,7 +75,7 @@
              </tr>
   
              <tr class="{$rowpos}">
  -             <td>
  +             <td colspan="4">
                  &nbsp;&nbsp;
                  <xsl:apply-templates select="description"/>
                </td>
  
  
  

Re: Rebuild of quickreference.html

Posted by Joshua Slive <jo...@slive.ca>.
André Malo wrote:

> <http://cvs.apache.org/~nd/manual/mod/quickreference.html>

+1

The broken vertical lines look a little wierd to me, but I certainly 
don't trust my own web-design judgement, so go for it.

Joshua.


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Rebuild of quickreference.html

Posted by André Malo <nd...@perlig.de>.
* André Malo wrote:

> * Joshua Slive wrote:
>> It's just *SO UGLY* with all the unlines.  There are occasions when
>> I'll sacrifice a little consistentcy to get something that looks
>> decent.

hmm, I don't find it ugly, really ;-)

I tried several combinations, and I'm actually missing the underlines,
when they aren't there (but that's just my feeling, of course). 

Because it's so huge, I've uploaded my current favourite version:

<http://cvs.apache.org/~nd/manual/mod/quickreference.html>

What do you think about?
(didn't want to commit yet, because there are so many changes)

> Alternatively we may put an image before the description and link it,
> e.g.
> 
> <a href="todirective"><img src="{$path}/images/right.gif" alt="-&gt;"
>/></a> directive syntax...

tried this, too -- it looks really ugly ;-)

> ok, later this day.

er, the tricky XSLT took me some time, because of the
two-step-processing (letter bar & zebra crossing) - but who cares? ;-) 

nd
-- 
package Hacker::Perl::Another::Just;print
qq~@{[reverse split/::/ =>__PACKAGE__]}~;

#  André Malo  #  http://www.perlig.de  #

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: cvs commit: httpd-2.0/docs/manual/style/xsl quickreference.xsl

Posted by André Malo <nd...@perlig.de>.
* Joshua Slive wrote:

>> Additionally we should be consistent and remove the
>> style="text-decoration: none" for the links.
> 
> It's just *SO UGLY* with all the unlines.  There are occasions when
> I'll sacrifice a little consistentcy to get something that looks
> decent. 

;-)
Alternatively we may put an image before the description and link it,
e.g. 

<a href="todirective"><img src="{$path}/images/right.gif" alt="-&gt;"
/></a> directive syntax... 

>> If desired, I will do the work, of course ;-)
> 
> Go to it!

ok, later this day.

nd
-- 
s;.*;aaaaaoaaaoaaaaooooaaoaaaomaaaa:a:alataa:aaoat:a:a:a
maoaa:a:laoata:a:oia:a:o:a:m:a:o:alaoooat:aaool:aaoaa
matooololaaatoto:aaa:o:a:o:m;;s:\s:\::g;y;mailto:;
\40\51/\134\137|ndparker <nd...@perlig.de>;;print;

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: cvs commit: httpd-2.0/docs/manual/style/xsl quickreference.xsl

Posted by Joshua Slive <jo...@slive.ca>.
André Malo wrote:

> the 'even' class is never used. I'd suggest to remove it. (the not 'odd'
> rows may be catched by '.qref tr' selector) 

It seems better to have the variable set in either case, but it's not a 
big deal to me.

>>              <tr class="{$rowpos}">
>>  -             <td>
>>  +             <td colspan="4">
>>                  &nbsp;&nbsp;
> 
> 
> hmmm. I think there should be set something like 'class="descr"' width a
> 'padding-left: 2em;' or so. Otherwise descriptions that are longer than
> one line don't look very good (and we get better semantics, of course). 

Good idea.

> 
> Additionally we should be consistent and remove the
> style="text-decoration: none" for the links. 

It's just *SO UGLY* with all the unlines.  There are occasions when I'll 
sacrifice a little consistentcy to get something that looks decent.

But I won't impose my opinion if others disagree.

> If desired, I will do the work, of course ;-)

Go to it!

Thanks.

Joshua.


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: cvs commit: httpd-2.0/docs/manual/style/xsl quickreference.xsl

Posted by André Malo <nd...@perlig.de>.
> slive       2002/09/18 15:50:38
> 
>   Modified:    docs/manual/style/xsl quickreference.xsl
>   Log:
>        <html xml:lang="{$messages/@lang}" lang="{$messages/@lang}">
>   @@ -27,21 +27,14 @@
> 
>   +                <xsl:when test="position() mod 2 =
>   0">even</xsl:when> +               
>   <xsl:otherwise>odd</xsl:otherwise> 

the 'even' class is never used. I'd suggest to remove it. (the not 'odd'
rows may be catched by '.qref tr' selector) 

>               <tr class="{$rowpos}">
>   -             <td>
>   +             <td colspan="4">
>                   &nbsp;&nbsp;

hmmm. I think there should be set something like 'class="descr"' width a
'padding-left: 2em;' or so. Otherwise descriptions that are longer than
one line don't look very good (and we get better semantics, of course). 

Additionally we should be consistent and remove the
style="text-decoration: none" for the links. 

If desired, I will do the work, of course ;-)

nd
-- 
print "Just Another Perl Hacker";

# André Malo, <http://www.perlig.de/> #

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org