<%@ page language="java" contentType="text/html;charset=Windows-31J"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"%>
<c:import var="xmlDoc" url="WEB-INF/sample.xml" charEncoding="Windows-31J" />
<x:parse var="xdoc" doc="${xmlDoc}" />
<html><body>
<x:if select="$xdoc/sample/data1 = 'ABCD'"> ・・・ (1)
DATA1=ABCD<br>
</x:if>
<x:if select="$xdoc/sample/data2 > 2"> ・・・ (2)
DATA2>2<br>
</x:if>
</body></html> |