[Javascript] Off Topic, CSS and XML Question- this message is in text format

Laurent Muchacho LaurentM at london.virgin.net
Fri Feb 18 03:08:43 CST 2005


Hi Charlie,

For consistency purpose I always try to keep my code consistent regarding
carriage return and space when I had a first look at your code the space
"style = "font-family: ..." their was my first concern but I tested it with
space and it seems to work I havn't tested it cross browser so.
I personally don't put carriage return, neither spaces in my html tag
properties but this is really up to you if you want to do otherwise I will
recommend that you keep consistent it will help readability on your code.
I hope this help 

Laurent

-----Original Message-----
From: charlie_chan [mailto:charlie_chan at cox-internet.com]
Sent: 18 February 2005 02:50
To: [JavaScript List]
Subject: Re: [Javascript] Off Topic, CSS and XML Question- this message
isin text format


It is "white space" a newline character.  Does that make a difference?

----- Original Message ----- 
From: "Laurent Muchacho" <LaurentM at london.virgin.net>
To: "'[JavaScript List]'" <javascript at LaTech.edu>
Sent: Thursday, February 17, 2005 7:56 AM
Subject: RE: [Javascript] Off Topic, CSS and XML Question- this message isin
text format


>
> Hi Charlie,
>
> Looking at your code there is something who's doesn't seems right
>
>    <p
>    style = "font-family:sans-serif; padding-top:20px; font-size:20px">
>    </p>
>    <xsl:value-of />
>
> Your p tag is actually empty is that correct or this supposed to be like
> this
>
>    <p style = "font-family:sans-serif; padding-top:20px; font-size:20px">
> <xsl:value-of />
>    </p>
>
> Laurent
>
> -----Original Message-----
> From: charlie_chan [mailto:charlie_chan at cox-internet.com]
> Sent: 17 February 2005 13:47
> To: javascript at LaTech.edu
> Subject: [Javascript] Off Topic, CSS and XML Question- this message is
> in text format
>
>
> The reason I posted the page here is that anyone who does
> a lot of work with browsers has to deal with XML.
>
> Does IE6 support CSS in a .xsl file? I've got .xml, .dtd,
> and a .xsl files, but the .xsl file has no effect on the
> formating of the XML document display which does display.
> It is copied straight out of the book, so the code should
> be correct.
>
> Here is the XSL page:
> <?xml version='1.0'?>
> <xsl:stylesheet xmlns:xsl="http............."> removed link for posting
> <xsl:template match="/">
>  <HTML>
>   <HEAD>
>    <TITLE>A Test</TITLE>
>   </HEAD>
>   <BODY>
>    <xsl:for-each select="story/section">
>    <p
>    style = "font-family:sans-serif; padding-top:20px; font-size:20px">
>    </p>
>    <xsl:value-of />
>    </xsl:for-each>
>   </BODY>
>  </HTML>
> </xsl:template>
> </xsl:stylesheet>
>
> The XML page contains the correct reference to the XSL page:
> <?xml-stylesheet type ="text/css" href="story.xsl"?>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>


_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript



More information about the Javascript mailing list