Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001944 [Resin] minor always 08-15-07 11:38 08-30-07 11:01
Reporter sam View Status public  
Assigned To ferg
Priority urgent Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.1.3 Product Version 3.1.2
  Product Build
Summary 0001944: <x:parse> varSax attribute
Description (rep by M Thompson)

Extending the JSTL XML parse tag to accept an XMLReader
<http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/XMLReader.html> [^]

The current JSTL specification states that the XML Parse tag can accept
either a String or a Reader to the xml attribute. It also has a varDom
attribute that can accept a DOM with optional attributes of filter and
systemId to control parsing. It would be really useful to
introduce an alternate attribute named varSax that could accept an
custom XMLReader which the tag would call parse() on and then receive
the SAX call-backs in a JAXP fashion allowing the following use of the
tag. The parse method could be overloaded to have no argument,
systemId, or an InputSource which could come from other attributes to
the tag.

<x:parse var="parsedDoc" varSax="${requestScope.aXmlReader}" scope="page"/>

The tag can then use JAXP to get the data in the same way as XLST or
Schema validation does for processing where in this case the XMLReader
object is set in request scope elsewhere in the framework.
Steps To Reproduce
Additional Information jsp/1g05

Adding a filter with the XMLFilter and leaving var and varDom unassigned will accomplish this.
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
08-15-07 11:38 sam New Issue
08-20-07 08:13 martinthompsonbf Issue Monitored: martinthompsonbf
08-30-07 11:01 ferg Assigned To  => ferg
08-30-07 11:01 ferg Status new => closed
08-30-07 11:01 ferg Resolution open => fixed
08-30-07 11:01 ferg Fixed in Version  => 3.1.3
08-30-07 11:01 ferg Additional Information Updated


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker