I have two xml files 1. book.xml and 2. Store.xml , I want to read Uid from book.xml and update value in attribute BookId in store.xml
<?xml version="1.0" encoding="UTF-8"?>
<Book Type="0001" Bkey="book1" BName="abc">
<Pages >
<Page LineNo="1.1" >
<Lines Size="1.00"
Total="0.00" Lock="N"
Amount="20.00" Unit="20.00"/>
<Chars>
<Char
Uid="123456"
NoOfChars="1000" Processed="N"
Knowledge="Y">
</Char>
</Chars>
</Page>
</Pages>
</Book>`
Store.xml
<bookstore>
<book BookId="">
<Bkey> book1 </Bkey>
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</book>
</bookstore>
I need xslt to read Uid value from Book.xml and update BookId= attribute in Store.xml
looking for below xml:
<bookstore>
<book BookId="123456">
<Bkey> book1 </Bkey>
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</book>
</bookstore>