[ http://issues.apache.org/jira/browse/XALANJ-2037?page=history ]
Brian Minchau updated XALANJ-2037:
----------------------------------
Attachment: ProcessorLRE.patch.txt
Patch to ProcessorLRE is attached.
This patch sets the location information at the time that the literal result
element is created.
The fix is like other similar code, e.g. in ProcessorAttributeSet.java:
ElemAttributeSet eat = new ElemAttributeSet();
eat.setLocaterInfo(handler.getLocator());
or in ProcessorTemplateElem:
elem = (ElemTemplateElement) classObject.newInstance();
elem.setDOMBackPointer(handler.getOriginatingNode());
elem.setLocaterInfo(handler.getLocator());
In these other cases the element is created, and the locator information is
then set.
However for this situation with ProcessorLRE an element is created, but the
code forgot to set the locator information.
> Literal result elements missing location information when tracing
> -----------------------------------------------------------------
>
> Key: XALANJ-2037
> URL: http://issues.apache.org/jira/browse/XALANJ-2037
> Project: XalanJ2
> Type: Bug
> Components: Trace-facility
> Reporter: Brian Minchau
> Attachments: ProcessorLRE.patch.txt
>
> When using simplified syntax for a stylesheet
> (see 2.3 of http://www.w3.org/TR/1999/REC-xslt-19991116)
> That is, where the whole stylesheet is just a literal result element there is
> a problem when tracing. A traceEvent() is sent for the top level literal
> element, but the ElemTemplateElement passed with the trace event does not
> have its location information set, so it has a null URI.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]