[ http://issues.apache.org/jira/browse/XALANJ-1290?page=all ]
Brian Minchau updated XALANJ-1290: ---------------------------------- Version: Latest Development Code (was: 2.0.0) > Problem with remapping a prefix to a different namespace uri in a xml > fragment. > ------------------------------------------------------------------------------- > > Key: XALANJ-1290 > URL: http://issues.apache.org/jira/browse/XALANJ-1290 > Project: XalanJ2 > Type: Bug > Components: Xalan > Versions: Latest Development Code > Environment: Operating System: Other > Platform: Other > Reporter: Guru Prasad > Assignee: Xalan Developers Mailing List > > I have an xml fragment x1, which has prefix "p1" mapped to URI "u1". > I have another xml fragment x2, which has the same prefix "p1" mapped to a > different URI "u2". > I have a very simple XSL that merges the two by appending x2 after x1 and > adding an outermost element. During this transformation, Xalan for some > reason > retains mapping in only one of the fragments (p1 specifically in x1). > Now both u1 and u2 are also defined as targetNamespaces in their respective > fragments. So this behaviour by Xalan would not have caused a problem under > regular circumstances. > But within x2 i have a "ref" attribute that is used to reference an element ( > which is also within x2 ). But since ref always needs a namespace prefix it > uses p1. But since only one of the prefixes have been retained, p1 now points > to u1 and doesn't apply to x2 at all, resulting in Xalan complaining abt not > being able to find the referenced element. > An exhaustive search through the bug list didn't yield anything. Similary a > search through various FAQs hasn't resulted in a convincing answer. -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]