[Home] [By Thread] [By Date] [Recent Entries]
babu.eshwaramoorthy@xxxxxxxxx wrote:
Hi All, hmmmm, a few things; - u might find something here (http://www.dpawson.co.uk/xsl/sect2/N4760.html) - btw no need for another XML PI e.g. <!xml in the body (above embed xml2), most processors will choke on such things - you could use an xinclude style approach to including xml documents in other xml documents, though of course you then need your processor to be xinclude aware then your xml would look like; <?xml version="1.0" encoding="UTF-8"?> <note xmlns="http://www.w3schools.com" > <to>Request</to> <from>String</from> <address> <xi:include href="otheraddress.xml" xmlns:xinclude="http://www.w3.org/2003/XInclude"/> </address> <body>String</body> </note> with the embedded xml, being a seperate document....of course u need an xinclude aware processor...xerces does it.. though if u were using the embedded document principle...you could take advantage of XSL/XPATH document() command ala <?xml version="1.0" encoding="UTF-8"?> <note xmlns="http://www.w3schools.com" > <to>Request</to> <from>String</from> <address> <address href="otheraddress.xml"/> </address> <body>String</body> </note> now you would have to supply document() with the attribute @href value.....a bit awkward though if you dont have access to an xinclude aware processor.... I wouldnt even bother with xlink etc... gl, Jim Fuller
|

Cart



