Hello sir,
I had a task were I have to process one big .xml file and genrate different .html from it by using xslt. Now after release coustomer wants to combime all the html to single .mht file. I have converted the source code to genrate the .mht file, but I am having problem in linking the html file in the .mht.
I have created a .mht file in following format (See attachment).
EXPLANATION:-
The .mht file contains following htmls. MHTLinkingProblem.html Left.html Right.html Start.html Plus.gif Mktree.css
- The MHTLinkingProblem.html is the main html which is divided in 2 frames.
- The Start.html dummy html to display the start of the page
- The Right.html contains :- An image with a source attribute pointing to the content-id of the image embedded in the .mht file. Code: -
b. And a anchor tag with a name attribute. Code: -
- The Left.html contains two links to the Right.html. :-
LinkWithoutFragmentRefURL
LinkWithFragmentRefURL
- The mktreee.css file contain some url that refers to the image that are present in the .mht file.
THE PROBLEM:-
The .mht file has one mktree.css file where its using the url to access one of the image which is embedded in the .mht file. Like this ul.mktree li.liOpen .bullet { cursor: pointer; background: url(cid:minus.gif);
center left no-repeat; } its not able to pic the image in the .mht file.The link shown in 5.b is not working. That is I am not able to refer a particular fragment of the html file using .mht. This is because the .mht resolve this URL in following format:- cid:Right.html#LinkName Now there is no content-id naming cid:Right.html#LinkName so it returns a error Page Cannot be displayed.
QUESTION:-
How to use the Relative Reference URL in the "href" attribute of the anchor tag so that it refers to a fragment(anchor tag with name attribute) of ANOTHER html in the same .mht file?
If the image is embedded in the .mht file then How to use the image embedded in the .css file.
Please help me with this problem. Its been two weeks since I am searching for a solution to this problem, but I had no success.
Regards, Thanks in advance, Naveen Murthy