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

A newbie question...

Subject: A newbie question...
From: Sara Mitchell <smitchel@xxxxxxxxxx>
Date: Thu, 11 Mar 1999 11:30:11 -0800
dhlhelp
This is probably a very beginning level question. I've been 
working on a proof-of-concept project to take XML to HTML 4.0
using XSL and the LotusXSL processor. 

I have a stylesheet that works, but I had to use a 'select' 
at the root node in order to get any output, which confused
me. The template that is working is: 

<xsl:template match="dhlhelp">
<xsl:apply-templates select="*"/>
</xsl:template>

where dhlhelp is the root node of the document. 

My sense of confusion comes from the examples that I have seen in 
the working draft and elsewhere which made me think that the
following template would work: 

<xsl:template match="dhlhelp">
<xsl:apply-templates/>
</xsl:template>

If I use this second example, LotusXSL outputs the HTML Doctype 
declaration, but no other fragment of the result tree comes out.
I've looked through the working draft and am now more confused
than I 
was. (Confusion is not an unlikely state for me to be in :-)

Could someone please explain: 

a) did I misunderstand the working draft and a 'select' is always
   required to instantiate the template and get a result
fragment? 

b) or should the second example still get output? 

Thanks, 

Sara


 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.