[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl:template combined with xt:document
"B. DEXHEIMER" wrote: > > ... > <xsl:for-each select="child::TEXT"> > <xt:document method="html" href="{$file}_{@xml:lang}.html"> > <xsl:template match="LEVEL1"> <-- this is the line 14 > > <!-- some html code here... --> > </xsl:template> > </xt:document> > </xsl:for-each> > > when I run xt, I have the following erro message : > file:/users/dexheim1/XML/test3.xsl:14: expected action not xsl:template xsl:template must be a top-level element, i.e. a child of the xsl:stylesheet element. Here, you've got it as a child of the xt:document element. Hence the error message. You'll need to restructure your stylesheet so that all the xsl:template elements are top-level. It can be done, just takes some thinking. :) If you post a snippet of your source XML, as well as the XSLT, someone on the list could probably provide more specific suggestions. ================================================================ John E. Simpson | "When I'm not in my right mind, my http://www.flixml.org | left mind gets pretty crowded." XML Q&A: www.xml.com | (Steven Wright) 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
|