migrated from sourceforge tracker https://sourceforge.net/tracker/?func=detail&aid=1543482&group_id=93991&atid=606303
TLD's can become quite long, especially if example code
is provided. One way to manage large XML documents is
by using XML entities, but the plugin doesn't process
the entities. (This may be a Maven infrastructure issue.)
<!DOCTYPE taglib PUBLIC
"-//Sun Microsystems, Inc.//DTD JSP Tag Library
1.2//EN"
"http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"
[<!ENTITY doubleselect-example SYSTEM
"examples/doubleselect.xml">]
>
...
</attribute>
&doubleselect-example;
</tag>
...
examples/doubleselect.xml
<example>
<s:doubleselect
label="doubleselect test1"
name="menu"
list="{'fruit','other'}"
doubleName="dishes"
doubleList="top == 'fruit' ? {'apple',
'orange'} : {'monkey', 'chicken'}" />
<s:doubleselect
label="doubleselect test2" name="menu"
list="#{'fruit':'Nice Fruits', 'other':'Other
Dishes'}"
doubleName="dishes"
doubleList="top == 'fruit' ? {'apple',
'orange'}} : {'monkey', 'chicken'}" />
</example>
-Ted.