Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

tag

tag

JSP Standard Label LibraryJSP Standard Tag Library

The tag is used together with thetag together, used to set the parameters of an XSLT stylesheet.

Syntax format



property

The tag has the following attributes:

property Description Whether it is required Default value
name The name of the XSLT parameter Is Body
value The value of the XSLT parameter No None

Example Demonstration

The code of the style.xsl file is as follows, using the xsl:param... tag and the {$bgColor} variable:

















  

  

   

  

  







  

      

The code of the mian.jsp file is as follows, using the x:param tag inside the x:transform tag:



<%@ page language="java" contentType="text/html; charset=UTF-8"

    pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>







  JSTL x:param 标签





Books Info:

Padam History ZARA 100 Great Mistry NUHA 2000

The running result is as follows:


JSP Standard Label LibraryJSP Standard Tag Library