You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Carlos <ca...@cvc.edu> on 2002/05/30 19:27:19 UTC
[Patch] [Questions] XSLT, CSS and Browser support
I have a questions related to the xml.apache.org skin (downloaded today from
CVS
1. I am looking at the Forrest XSLT sources and see the following construct
<xsl:when test="$level=1">
<font color="#0086b2" size="+2" face="verdana, helvetica, sans serif">
<xsl:value-of select="@title"/>
</font>
<hr size="1" style="color: #0086b2"/>
<xsl:apply-templates/>
</xsl:when>
Wouldn't this be best served by creating a special class for either P or
H1? Below is what I had in mind
h1.section1 {
font-size : 1.2em;
font-color : #0086b2;
font-family : verdana, helvetica, "sans serif"
}
And then leave the template as:
<xsl:when test="$level=1">
<h1 class="section1">
<xsl:value-of select="@title"/>
</h1>
<hr size="1" style="color: #0086b2"/>
<xsl:apply-templates/>
</xsl:when>
2. The CSS stylesheet uses pixels as a measurement unit. Everywhere I've
read it says that pixels are not a good unit to use because they are
dependent on the monitor size (and the same font will display differently on
Mac and PCs anyway) I've attached a diff file of the CSS stylesheet with all
px measurements changed to em.
3. Has a policy been made in terms of browser support? I would like to see
Forrest supporting CSS compliant browsers only.
--
Carlos E. Araya
---+ WebCT Administrator/Trainer
P | California Virtual Campus
- | C/O De Anza College
G | 21250 Stevens Creek Blvd
---+ Cupertino, CA 95014
email carlos@cvc.edu
web http://www.cvc1.org/ (work)
http://silverwolf-net.net (personal)
phone 408 257 0420 (work)
PGP Fingerprint: E629 5DFD 7EAE 4995 E9D7 3D2F 5A9F 0CE7 DFE7 1756
Three things are certain:
Death, taxes, and lost data.
Guess which has occurred.
Re: [Patch] [Questions] XSLT, CSS and Browser support
Posted by David Crossley <cr...@indexgeo.com.au>.
Bert Van Kets wrote:
<snip/>
>
> IMHO we have come to the decision that we must support as many browsers as
> possible to make sure that the site can be viewed be all these techi guys
> using older browsers on *nix. ...
<snip/>
Steady on Bert. I do not think that that is the reason.
And i reckon that you will find that group is sufficiently
techically advanced and using modern browsers too.
UNIX does not mean old.
--David
Re: [Patch] [Questions] XSLT, CSS and Browser support
Posted by Bert Van Kets <be...@vankets.com>.
Carlos,
I am in the process of creating a new version of the default skin for
Forrest. I am sending it to Steven today. The differences are a bit too
big to make a diff file, certainly in teh site2xhtml.xsl file.
I actually created a whole new page keeps the current look, apart from
rounded corners, but is viewable in most every browser you can think of,
including Lynx, Netscape 4.08 and Netscape 4.7!
To my opinion we must maintain that compatibility and are therefor obliged
to use <font> tags. If we replace them by CSS the site will not be usable
by the older browsers. We don't want that, do we? Besides, have you
looked at the current forrest site with Netscape 4.08???? VERY ugly!
I think that CSS can be used to make the page more appealing, but not as a
basic page building tool.
You are right about the use of pixedl hights, but the reason to use ems is
that the fonts remain scalable. Pixel sizes are absolute sizes and
therefor not scalable. Since IE does not have a zoom function, we must use
ems (M$ again!)
IMHO we have come to the decision that we must support as many browsers as
possible to make sure that the site can be viewed be all these techi guys
using older browsers on *nix. The content pane of the site can use CSS
since it will make the creation a lot simpler (as you already pointed out).
Feel free to create a skin of your own and commit ;-) It's not hard to do.
Bert
At 10:27 30/05/2002 -0700, you wrote:
>I have a questions related to the xml.apache.org skin (downloaded today from
>CVS
>
>1. I am looking at the Forrest XSLT sources and see the following construct
>
><xsl:when test="$level=1">
><font color="#0086b2" size="+2" face="verdana, helvetica, sans serif">
><xsl:value-of select="@title"/>
></font>
><hr size="1" style="color: #0086b2"/>
><xsl:apply-templates/>
></xsl:when>
>
>Wouldn't this be best served by creating a special class for either P or
>H1? Below is what I had in mind
>
>h1.section1 {
>font-size : 1.2em;
>font-color : #0086b2;
>font-family : verdana, helvetica, "sans serif"
>}
>
>And then leave the template as:
>
><xsl:when test="$level=1">
><h1 class="section1">
><xsl:value-of select="@title"/>
></h1>
><hr size="1" style="color: #0086b2"/>
><xsl:apply-templates/>
></xsl:when>
>
>
>
>2. The CSS stylesheet uses pixels as a measurement unit. Everywhere I've
>read it says that pixels are not a good unit to use because they are
>dependent on the monitor size (and the same font will display differently on
>Mac and PCs anyway) I've attached a diff file of the CSS stylesheet with all
>px measurements changed to em.
>
>
>3. Has a policy been made in terms of browser support? I would like to see
>Forrest supporting CSS compliant browsers only.
>
>
>--
>Carlos E. Araya
>---+ WebCT Administrator/Trainer
> P | California Virtual Campus
> - | C/O De Anza College
> G | 21250 Stevens Creek Blvd
>---+ Cupertino, CA 95014
>
>email carlos@cvc.edu
>web http://www.cvc1.org/ (work)
> http://silverwolf-net.net (personal)
>phone 408 257 0420 (work)
>PGP Fingerprint: E629 5DFD 7EAE 4995 E9D7 3D2F 5A9F 0CE7 DFE7 1756
>
>
>Three things are certain:
>Death, taxes, and lost data.
>Guess which has occurred.
>