You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by #Cyrille37# <cy...@gmail.com> on 2007/07/28 12:22:54 UTC
[T4.1.2] add an include-script element throw a SAX exception
Hello
I don't understand why I get the SAXParseException :
The content of element type "script" must match
"(include-script*,input-symbol*,(let|set)*,body?,initialization?)".
The exception arrived when **I add a include-script element**.
The script is :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE script PUBLIC
"-//Apache Software Foundation//Tapestry Script Specification 3.0//EN"
"http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd">
<script>
<input-symbol key="item" class="model.Item" required="yes"/>
<include-script resource-path="ItemRenderer.js"/>
<body>
...
org.apache.tapestry.util.xml.DocumentParseException
Unable to parse
file:/D:/evote.java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Scrutalys-web-T4/WEB-INF/classes/com/digimedia/scrutalys/web/components/vote/BallotRenderer.script:
The content of element type "script" must match
"(include-script*,input-symbol*,(let|set)*,body?,initialization?)".
location:
classpath:/com/digimedia/scrutalys/web/components/vote/BallotRenderer.script,
line 144, column 10
139
ad.setMessage( errors );
140
ad.show();
141
}
142
</body>
143
144
</script>
145
Have you got any idea about that ?
thanks
cyrille
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: [T4.1.2] add an include-script element throw a SAX exception
Posted by #Cyrille37# <cy...@gmail.com>.
#Cyrille37# a écrit :
> Hello
>
> I don't understand why I get the SAXParseException :
> The content of element type "script" must match
> "(include-script*,input-symbol*,(let|set)*,body?,initialization?)".
>
> The exception arrived when **I add a include-script element**.
>
> The script is :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE script PUBLIC
> "-//Apache Software Foundation//Tapestry Script Specification 3.0//EN"
> "http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd">
> <script>
> <input-symbol key="item" class="model.Item" required="yes"/>
> <include-script resource-path="ItemRenderer.js"/>
> <body>
> ...
Ok, I found.
<include-script> must be just after the <script>
Like :
<script>
<include-script resource-path="ItemRenderer.js"/>
<input-symbol key="item" class="model.Item" required="yes"/>
<body>
cyrille
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org