XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Arnt MobergSubject: ERROR: xsl:template is not allowed in this position in the stylesheet
Author: Arnt Moberg
Date: 09 Mar 2005 07:35 AM
Hi

I have made a xslt file that generates a html form. It works in
Stylus studio when I compile it. The HTML page is compiled, but when
I try to compile it using XALAN i get the error:
xsl:template is not allowed in this position in the stylesheet

I am a newbee to XSLT so if anyone could help me with this I would be very
happy!


Unknowncombo.xml
Combo.xml

Unknowncombo(1).xsl
combo.xsl

Postnext
Ivan PedruzziSubject: ERROR: xsl:template is not allowed in this position in the stylesheet
Author: Ivan Pedruzzi
Date: 09 Mar 2005 09:31 AM
The following section is incorrect

<p align="center">
<xsl:template match="/">
<xsl:call-template name="combo">
<xsl:with-param name="limit" select="@maxpoint+1" />
</xsl:call-template>
</xsl:template>
</p>

XSLT does not allow to declare a template inside another template.
Change it to

<p align="center">
<xsl:call-template name="combo">
<xsl:with-param name="limit" select="@maxpoint+1" />
</xsl:call-template>
</p>

Hope this helps
Ivan

Posttop
Arnt MobergSubject: ERROR: xsl:template is not allowed in this position in the stylesheet
Author: Arnt Moberg
Date: 09 Mar 2005 10:53 AM
Hi

Yes this solved the problem. Works very good now!!!

Thanks alot for taking the time to help me!!

arnt

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.