Mantis - Resin
Viewing Issue Advanced Details
1348 major always 09-15-06 05:26 05-15-07 16:39
Victor  
ferg  
normal  
closed 3.0.21  
fixed  
none    
none 3.1.2  
0001348: x:transform do not work with standart web.xml
I've got transformer exception when I put this web.xml to /WEB_INF

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd"> [^]
<web-app>
 <!-- any tags -->
</web-app>


Jsp file example. (from "JSTL in Action")

<%@ taglib uri="http://java.sun.com/jstl/core_rt" [^] prefix="c" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml" [^] %>

<c:set var="xml">
  <paragraph>
     This document uses <bold>unusual</bold> markup,
     which we want to replace with <bold>HTML</bold>.
  </paragraph>
</c:set>

<c:set var="xsl">
  <?xml version="1.0"?>
  <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" [^] version="1.0">
  <xsl:template match="paragraph">
    

<xsl:apply-templates/>


  </xsl:template>
  <xsl:template match="bold">
    <xsl:value-of select="."/>
  </xsl:template>
  </xsl:stylesheet>
</c:set>

<x:transform doc="${xml}" xslt="${xsl}"/>

Notes
(0001929)
ferg   
05-15-07 16:39   
jsp/1m65