[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Another newbie question

Subject: Another newbie question
From: Nicole Gustas <ngustas@xxxxxxxxxxxxx>
Date: Mon, 13 Mar 2000 14:46:33 -0500
rednikki
I am banging my head against the wall working on My Very First XML Page (TM) and
was hoping someone here could help me, as I'm fairly sure it's the XSL I bollixed
up.

The XSL is as follows:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="document">
<xsl:apply-templates/>

</xsl:template>
<body bgcolor="Black" text="White" link="#CCCCCC" vlink="Red" alink="Blue"/>
<xsl:template match="title">
 <font face="arial,helvetica,helv" size="+3"><b><xsl:apply-templates
select="name"/>
 <xsl:apply-templates select="num"/></b></font>

</xsl:template>
<xsl:template match="body">
 <table width="600" border="0" cellpadding="6">
 <tr>
 <td align="top" valign="left">
  <xsl:apply-templates match="img"/>
 </td>
 <td align="top" valign="left">
  <p><font color="#000000"><xsl:apply-templates match="text"/></font></p>
 </td>
 </tr>
 </table>
</xsl:template>
</xsl:stylesheet>

...and the XML is:

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="gallery.xsl"?>
<!DOCTYPE document SYSTEM "gallery.dtd">
<document>
<title name="John" num="3"/>
<body>
<img src="john3.jpg" alt="Lighting Candles" height="257" width="287"/>
<text>Lighting candles.</text>
</body>
<footer>
<index href="index.htm"/>
<yplt href="../pretty.htm"/>
<home href="../index.html"/>
<copyright/>
</footer>
</document>

I am trying to emulate:
http://www.obscure.org/~rednikki/john/john3.htm

but so far all I get is the black background.

Obviously, I've screwed up.  If anyone can take the time to point me in the right
direction, I'd be much obliged.

- Nikki


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.