Bug 8348 - <x:parse> is unable to accept all input sources as specified by the spec
Summary: <x:parse> is unable to accept all input sources as specified by the spec
Status: CLOSED WONTFIX
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: unspecified
Hardware: All All
: P3 critical (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-21 18:45 UTC by Ryan Lubke
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.