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

charlie_chan charlie_chan at cox-internet.com
Tue Feb 22 07:20:08 CST 2005


Here are the pages from the book and what I named them:

story.xml
<?xml version="1.0"?>
<?xml-stylesheet type ="text/css" href="story.xsl"?>
<!DOCTYPE story SYSTEM "storyxsl.dtd">

<story>
<title>Freedom's Dream</title>
<author>by Charles White</author>
<copyright>Copyright 1996, 1999 by Charles White</copyright>
<section>
<para>Had it been a dream, Antron Crimea's memory of the clenched fist
piercing the
sky of a tumultuous, thundering crowd would have been bearable solitude. As
it was though, the reality brought him to another place, to a distance only
something like a dream could take him.</para>
<para>&quot;The crowd forgot everything,&quot; is how Antron described the
situation to his
psychiatrist,
<link id="ChesapeakeLink">Chesapeake Alert.</link>
Antron remembered the rhythm, the pulse, everything. After all this time the
energy of the crowd
still seemed to reverberate through his head.
</para>
<para>Chesapeake Alert was nothing but a large bulbous mass of jelly-like
flesh; a brain plopped
down on an empty, expensive slice of carpet. And though he had no legitimate
locomotive
capabilities of his own, he was aware of the movements of a billion others.
</para>
<para>Antron's hundred legs crawled around what was left of the carpet in
the kind of pace unknown
to you or I. His earlier confusion had long ago been dissolved by the
righteous events of what he
had seen during the course of events Billy Freedom had ignited.
</para>
<para>&quot;Sometimes betrayal is a necessity,&quot;said Chesapeake.
&quot;Startling. And
expensive. It must be weighed carefully.&quot;
</para>
</section>
<auto-link
 xml:link="simple"
 actuate="user"
 href="sec_2.xml"
 show="replace">click here to continue</auto-link>
</story>

story.xsl
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<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>

story.dtd
<!ELEMENT story (title*, author*, copyright*, section+, auto-link*)>
<!ATTLIST story id ID #IMPLIED>
<!ENTITY quot "&#34;">
<!ELEMENT title (#PCDATA)>
<!ELEMENT author (#PCDATA)>
<!ATTLIST author id ID #IMPLIED>
<!ELEMENT copyright (#PCDATA)>
<!ELEMENT section ((graphic*, para*), list*)>
<!ATTLIST section reference ENTITY #IMPLIED>
<!NOTATION PNG SYSTEM "Iexplore.exe">
<!NOTATION GIF SYSTEM "Iexplore.exe">
<!ELEMENT graphic (#PCDATA)>
<!ATTLIST graphic src ENTITY #REQUIRED id ID #IMPLIED>
<!ELEMENT para (#PCDATA | link)*>
<!ATTLIST para id ID #IMPLIED>
<!ELEMENT link (#PCDATA)>
<!ELEMENT list (#PCDATA)>
<!ATTLIST link id ID #IMPLIED>
<!ELEMENT auto-link ANY>
<!ATTLIST auto-link xml:link
 CDATA #FIXED "simple"
 href CDATA #REQUIRED
 inline (true | false) "true"
 role CDATA #IMPLIED
 title CDATA #IMPLIED
 show (replace | new | embed) #IMPLIED
 actuate (auto | user) #IMPLIED
 behavior CDATA #IMPLIED
 content-role CDATA #IMPLIED
 content-title CDATA #IMPLIED>

Does any one see the problem?  This book has been very annoying when
it comes to trying to learn from it.

----- Original Message ----- 
From: "charlie_chan" <charlie_chan at cox-internet.com>
To: "[JavaScript List]" <javascript at LaTech.edu>
Sent: Thursday, February 17, 2005 8:50 PM
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