Francis, The <xsl:output method="xml"/> or method="html" is a top-level stylesheet element (see XSLT Rec section 16). The file name you give to the output file has nothing to do with it -- it could be eg.foo and the serialized format (xml, html, text) would be still be determined by the <xsl:output> element in the stylesheet. (Obviously it's easier for everybody if you give a suffix .xml to files with output method="xml", .html to method="html", etc. But there's nothing magic about the file name.) If you have no <xsl:output> element in your stylesheet, the default is method="xml" unless the document element of your result tree is 'html' -- see the spec. In either case, you should get element markup in your output when you use <xsl:element> in your stylesheet. When method="text", no element markup appears because no markup appears at all. Sorry this has been so confusing (and sorry if it's still confusing or if, once again, we've explained something not to the point) -- sometimes it's hard to guage exactly what someone is trying to ask, and exactly what they already know about what they're asking about. --Wendell At 12:43 PM 4/14/00 -0700, you wrote: >What I mean by that is when I use my saxon I use it like this. > >saxon -o eg.html eg.xml eg.xsl > where eg.html is the output file.If I have the xsl:output >method="xml" then my output file extension should be xml right?.Cause thats >when it is displayed like <year>2000</year> if I have xsl:element. ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ====================================================================== 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