Annotation of kupuMPIWG/common/kupu.pox.jspx, revision 1.1
1.1 ! dwinter 1: <!--
! 2: Based on JSTL, see http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html
! 3: and JSP 2.0. JSP 2.0 is part of the Servlet 2.4 API and supported e.g. by Tomcat 5, see http://jakarta.apache.org/tomcat/.
! 4:
! 5: Place kupu-i18n.jar, jstl.jar and standard.jar in WEB-INF/lib.
! 6:
! 7: See also: ../make-jspx.xml (which can be used to create localized Jspx temlates from kupu-files)
! 8:
! 9: $Id: $
! 10: -->
! 11: <jsp:root version="2.0"
! 12: xmlns:jsp="http://java.sun.com/JSP/Page"
! 13: xmlns:c="http://java.sun.com/jsp/jstl/core"
! 14: xmlns:x="http://java.sun.com/jsp/jstl/xml"
! 15: xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
! 16: >
! 17: <c:import url="kupu.pox" var="xml"/>
! 18: <x:parse var="doc" doc="${xml}" scope="application" />
! 19: <catalog>
! 20: <fmt:setLocale value="${param.language}" />
! 21: <fmt:bundle basename="org.oscom.kupu.Messages">
! 22: <x:forEach select="$doc/catalog/message">
! 23: <x:set select="string(@filenames)" var="fn" />
! 24: <x:set select="normalize-space(msgid)" var="msgid" />
! 25: <message filenames="${fn}">
! 26: <msgid>${msgid}</msgid>
! 27: <msgstr><fmt:message key="${msgid}" /></msgstr>
! 28: </message>
! 29: </x:forEach>
! 30: </fmt:bundle>
! 31: <c:if test="${param.mymessages != null}">
! 32: <jsp:include page="${param.mymessages}" />
! 33: </c:if>
! 34: </catalog>
! 35: </jsp:root>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>