|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Copy all attributes except except some
On 19.06.2014 03:33, Philipp Kursawe phil.kursawe@xxxxxxxxx wrote:
The resulting XML should contain only 2 attributes from "InspectionExt" in case result="10" or "11" otherwise all attributes and "Obligations", "Defects" but no "Photo" Also when copying the Defects/Defect items, only those with "not(@reinspection='ok'" should be copied over. No "Defects" element should be created if nothing from source xml is copied. The resulting "Defect" element must not contain the "reinspection" attribute. In XPath 1, there is no eq operator. Use = instead. You are selecting all attributes that don't have a reinspection attribute attached to them. Since no attribute carries other attributes, your predicate is always true. Use @*[not(name() = 'reinspection')] instead. Gerrit
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








