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

Re: xsl:template combined with xt:document

Subject: Re: xsl:template combined with xt:document
From: "John E. Simpson" <simpson@xxxxxxxxxxx>
Date: Thu, 19 Oct 2000 11:23:59 -0700
xt error expected action not
"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


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.