|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] A newbie question...
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








