Open GoogleCodeExporter opened 8 years ago
sorry forgot to attach file. so attaching in the comment.
Original comment by jignesh....@gmail.com
on 12 Aug 2013 at 11:33
Attachments:
I just had a look at the line number 6 of page source and I found that the
<link rel="stylesheet" type="text/css" href="css/diff.css">
does not have end tag. That can be this error. I think it's daisydiff
generated. Please let me know how to solve this error.
Full generated html Page source:
<?xml version="1.0" encoding="UTF-8"?>
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="css/diff.css">
</head>
<body>
<script type="text/javascript" src="js/tooltip/wz_tooltip.js"></script><script
type="text/javascript" src="js/tooltip/tip_balloon.js"></script><script
type="text/javascript" src="js/dojo/dojo.js"></script><script
type="text/javascript" src="js/diff.js"></script><script>
htmlDiffInit();
</script>
<div class="diff-topbar">
<table class="diffpage-html-firstlast">
<tr>
<td style="text-align: left;"><a class="diffpage-html-a"
onclick="scrollToEvent(event)" id="first-diff" href="#changed-diff-0"
next="changed-diff-0"><img title="Go to first change."
src="images/diff-first.gif" class="diff-icon"></a><a class="diffpage-html-a"
onclick="scrollToEvent(event)" href="#changed-diff-0"> first</a></td><td
style="text-align: center; font-size: 140%;"><a
href="http://code.google.com/p/daisydiff/" class="diffpage-html-a"
style="font-size: 100%;">Daisy Diff</a> compare report.<br>
<span style="font-style: italic; font-size: 70%;">Click on the changed parts
for a detailed description. Use the left and right arrow keys to walk through
the modifications.</span></td><td style="text-align: right;"><a
class="diffpage-html-a" onclick="scrollToEvent(event)" href="#removed-diff-1">
last </a><a class="diffpage-html-a" onclick="scrollToEvent(event)" id="last-diff" href="#removed-diff-1" previous="removed-diff-1"><img title="Go to last change." src="images/diff-last.gif" class="diff-icon"></a></td>
</tr>
</table>
</div>
<span class="diff-html-changed" id="changed-diff-0" changes="Moved out of a
heading (level 1)." previous="first-diff" changeId="changed-diff-0"
next="removed-diff-0" onclick="return tipC(constructToolTipC(this));">This is
</span><span class="diff-html-removed" id="removed-diff-0"
previous="changed-diff-0" changeId="removed-diff-0" next="added-diff-0"
onclick="return tipR(constructToolTipR(this));">h1 </span><span
class="diff-html-added" id="added-diff-0" previous="removed-diff-0"
changeId="added-diff-0" next="changed-diff-1" onclick="return
tipA(constructToolTipA(this));">normal </span><span class="diff-html-changed"
id="changed-diff-1" changes="Moved out of a heading (level 1)."
previous="added-diff-0" changeId="changed-diff-1" next="removed-diff-1"
onclick="return tipC(constructToolTipC(this));">heading</span><span
class="diff-html-removed" id="removed-diff-1" previous="changed-diff-1"
changeId="removed-diff-1" next="last-diff" onclick="return
tipR(constructToolTipR(this));"></span>
</body>
</html>
Original comment by jignesh....@gmail.com
on 12 Aug 2013 at 11:39
[deleted comment]
This is what I get when I try to do the same in firefox.
File attache.
Original comment by jignesh....@gmail.com
on 12 Aug 2013 at 1:56
Attachments:
The link line is created in file htmlheader.xsl
There however it IS correctly closed.
<head>
<xsl:apply-templates select="diffreport/css/node()"/>
<link href="css/diff.css" type="text/css" rel="stylesheet"/>
</head>
So perhaps this is not the whole problem...
Original comment by kkape...@gmail.com
on 12 Aug 2013 at 5:21
[deleted comment]
Thanks for your reply.
It should come the way you have mentioned.
i.e.
<link href="css/diff.css" type="text/css" rel="stylesheet"/>
but what I get is
<link rel="stylesheet" type="text/css" href="css/diff.css">
there is no closing />
it only has >
and I guess because of that I am getting no end tag error.
Ok. I will look into what I have in htmlheader.xsl and will update the status.
Original comment by jignesh....@gmail.com
on 12 Aug 2013 at 6:36
Hi, I got it working in my case. but you might want to read whole comment.
there is still issue with link tag.
how it is fixed: I thought my servletoutstream may be looking for content type
application/xml so I set outputstream content type to text/html.
in HTML it's not compulsary to have end tag like </link> or />. but in XML it
is. because of that reason I was getting this error. so I changed my content
type to text/html and it worked.
response.setContentType("text/html; charset=utf-8");
However, I would like to specify that: despite I have <link href="css/diff.css"
type="text/css" rel="stylesheet"/> with end tag in file htmlheader.xsl in
daisydiff jar file, I always get output without end tag.
I have tried by all means: 1> hosted my two html files and then tried to
generate difference by executing jar file from command prompt.
2> run a standalone program to generate HTML difference
3> uploaded daisydiff jar file in my maven repo. and used jar file in web
application and generated output in in servletoutputstream but still I get link
without end tag.
It's ok if someone is expecting html as output but if it's xml then it will
throw the same error that I was getting.
You might want to check that.
By the way Thanks a lot for fantastic daisydiff project. It helps a lot to
developers like us. Much Appreciated.
Original comment by jignesh....@gmail.com
on 13 Aug 2013 at 8:38
Original issue reported on code.google.com by
jignesh....@gmail.com
on 12 Aug 2013 at 11:30