Answers

Question and Answer:

  Home  XSLT

⟩ How to use filtering function in XSLT?

We can filter the XNL output by using filter operators.Some Legal filter operators are given below:

1.=(equal to)

2.!=(not equal to)

3.<(less than)

4.>(greater than)

I have given you a example. In this I have uses '=' equal to filer operation.

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet version="1.0"

xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">

<html>

<body>

<h2>Book Collection</h2>

<table border="1">

<tr bgcolor="#9acd32">

<th>Title</th>

<th>Author</th

 178 views

More Questions for you: