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

Another Beginner's Question

Subject: Another Beginner's Question
From: Laurie Mann <laurie.mann@xxxxxxxxx>
Date: Mon, 27 Mar 2000 14:59:02 -0500
refentry xml
I'm trying to learn XSL so I can convert XML documents to HTML.
I have a simple XML file that looks something like this:

   <refentry>
   <refnamediv>
      <refname>Test</refname>
      <refpurpose> </refpurpose></refnamediv>
  <refsect1>
     <title>Object Orientation</title> 
    <para>In order...</para>
     <para>and so on...<para>
   </refsect1>
   <refsect1>
       <title>Input Vector Orientation Option</title>     
     <para>The current...</para>
     <para>and so on...<para>
</refsect1>
</refentry>

I'm running XT, and my XSL file looks like this:

<?xml version="1.0"?>
<xsl:stylesheet 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

           <xsl:template match=" /">
           <html>
             <head>
               <title>Drop Test Module Online Help</title>
             </head>
             <body  BGCOLOR="#FFFFFF" TEXT="#000000">
               <xsl:apply-templates select="refentry" />
            </body>
           </html>
           </xsl:template>

        <xsl:template match="refentry">
           <h1><xsl:value-of select="refname" /></h1>
         </xsl:template>

        <xsl:template match="refentry">
           <p><xsl:value-of select="para" /></p>
         </xsl:template>

</xsl:stylesheet>

The "select-of" functions aren't working at all - the value of the node
is thrown away in the HTML file, and I'm only left with empty
pairs of tags in the output file.  What am I missing?

(Is is a heading problem?  I've looked in miscellaneous sample XSL
files on the Web and in books and am finding slightly different versions,
with little explanation about why they are different.)

Thanks!


 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.