I agree with you. The prefixes in the XUpdate document should be handled separately from the prefixes in the target document. Matching should only be done on the URI/local name pair.
-- Ron Jeroen Breedveld wrote: > > Hi all, > > I think I found a namespace issue. Apparantly Lexus resolves namespaces > using namespace declarations from the target document (to be xupdated) > instead of the namespace declarations from the xupdate document. I think > this is wrong because prefixes don't matter only URIs matter. The > working draft does not say anything about this matter but I think this > is the logical thing to do. Any thoughts? > > USE CASE: > > input: > > <?xml version="1.0"?> > <addresses xmlns:address1="http://www.xmldb.org/address1" > xmlns:address2="http://www.xmldb.org/address2" > xmlns:address3="http://www.xmldb.org/address3"> > <address1:address name="Lars"> > <address1:town>Los Angeles</address1:town> > </address1:address> > <address2:address name="Lars"> > <address2:town>Los Angeles</address2:town> > </address2:address> > <address3:address name="Lars"> > <address3:town>Los Angeles</address3:town> > </address3:address> > </addresses> > > xupdate: > > <xupdate:modifications version="1.0" > xmlns:xupdate="http://www.xmldb.org/xupdate"> > <xupdate:insert-after xmlns:addressX="http://www.xmldb.org/address2" > select="/addresses/addressX:address"> > <xupdate:comment>new addresses</xupdate:comment> > <address name="Jan"> > <town>Las Vegas</town> > </address> > <xupdate:comment>end of new adresses</xupdate:comment> > </xupdate:insert-after> > </xupdate:modifications> > > expected result: > > <?xml version="1.0"?> > <addresses xmlns:address1="http://www.xmldb.org/address1" > xmlns:address2="http://www.xmldb.org/address2" > xmlns:address3="http://www.xmldb.org/address3"> > <address1:address name="Lars"> > <address1:town>Los Angeles</address1:town> > </address1:address> > <address2:address name="Lars"> > <address2:town>Los Angeles</address2:town> > </address2:address> > <!--new addresses--> > <address name="Jan"> > <town>Las Vegas</town> > </address> > <!--end of new adresses--> > <address3:address name="Lars"> > <address3:town>Los Angeles</address3:town> > </address3:address> > </addresses> > > exception: > > Prefix must resolve to a namespace: addressX > javax.xml.transform.TransformerException: Prefix must resolve to a > namespace: addressX ---------------------------------------------------------------------- Post a message: mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED] Contact administrator: mailto:[EMAIL PROTECTED] Read archived messages: http://archive.xmldb.org/ ----------------------------------------------------------------------
