Inset xslt missing element

oradoe

New Member
I have a query in the xml and xsltThe below is the Input XML\[code\]<?xml version="1.0" encoding="UTF-8"?> <Employer><Employees> <EmployeesDetails>van ind 26%</EmployeesDetails></Employees> <Employees> <EmployeesDetails>van ind</EmployeesDetails></Employees> \[/code\]The below is my output file\[code\]<?xml version="1.0" encoding="UTF-8"?><Employer><Employees> <Names>van</Names> <Location>ind</Location> <Weather>26</Weather></Employees><Employees> <Names>van</Names> <Location>ind</Location> <Weather>100</Weather></Employees>\[/code\]In XSLT I need to check(XSL:IF)whether weather element is available or not from Input XML if available(26%) I have to remove % using XSLT then output will be 26. If there Is no element in XML(weather) It has to create by default 100.Can we able to do this in XSLT is that possible.Can anyone help me out here please
 
Back
Top