Bug 8348

Summary: <x:parse> is unable to accept all input sources as specified by the spec
Product: Taglibs Reporter: Ryan Lubke <Ryan.Lubke>
Component: Standard TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: CLOSED WONTFIX    
Severity: critical    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Ryan Lubke 2002-04-21 18:45:41 UTC
Page 13-172 pf the PFD spec states that one of the valid input objects to the
xml attribute of <x:parse> is an instance of javax.xml.transform.Source.

Resulting stacktrace:
--------------------------------------------------
javax.servlet.jsp.JspTagException: Unrecognized object supplied as 'xmlText'
attribute to <parse>
at
org.apache.taglibs.standard.tag.common.xml.ParseSupport.doEndTag(ParseSupport.java:167)

--------------------------------------------------

Additionally the error message could use some cleanup as 'xmlText' is not a
valid attribute.
Comment 1 Ryan Lubke 2002-04-21 18:52:32 UTC
I've updated the summary to be generic.  The <x:parse> action is only
able to parse input sources of String or Reader.

Any of the other input sources:

   -javax.xml.transform.Source
   -Object exported by <x:parse>, <x:set>, or <x:transform>

Will fail.
Comment 2 Shawn Bayern 2002-04-21 20:34:29 UTC
Funny, I just questioned this in the spec; I believe it is a spec typo.  I'll 
follow up once I hear back from Pierre,
Comment 3 Shawn Bayern 2002-04-23 19:48:49 UTC
To be changed in the spec.