Shiny New E-Book Gizmo: The Amazon Kindle


View Full Version : sunrise parser issue?


mutsuenmei
05-20-2005, 07:58 PM
Hi,

I'm not definate but I think sunrise parser is not detecting
the link syntax of the following

localhost/tcm/formula/shihuisan.html#ai

the #ai seem to be missing after the parsing...

this is for the link to this anchor.

<a name="ai"></a>

Let me know if that is the case?

Mutsu

Laurens
05-21-2005, 03:50 AM
It's not possible to use anchors in starting links.

mutsuenmei
05-21-2005, 10:20 AM
It's not possible to use anchors in starting links.

Hi, I'm not sure what you mean since I'm just a novice but,

I'm using these anchors to link text within the same page.

Mozilla works with it and iSillox/iSilo demo works too.
So I'm not sure what up since Plucker/Sunrise does not like it.

Maybe I wasn't clear with my issue...

within the html file of shihuisan.html page:

http://localhost/tcm/formula/shihuisan.html#ai>go_to_text

<a name="ai"><a>
text data

Plucker complains the shuhuisan.html file is not downloaded with a path of
http://localhost/tcm/formula/shihuisan.html

the #ai is not reconized?

thanks,
Mutsu

taylor
05-21-2005, 08:40 PM
Yes. Laurens is saying that you can't use # symbols in the URL.

hacker
05-22-2005, 01:07 PM
A couple of points:



The link to http://www.example.com/bar.html and http://www.example.com/bar.html#foo are getting you the exact same resource... bar.html.
Your use of the fragment syntax is wrong. You want something like <a name="ai">AI</a>, not an empty anchor. More-correct would be something like <p name="ai">This is my paragraph describing ai and whatever else.</p>
I don't think Sunrise can start a fetch at a fragment like that (a limitation in Sunrise, though it should convert a request for bar.html#foo to a request for bar.html, and then begin the page at fragment 'foo' from there, but its not my tool, so I can't guide that feature.
You might consider using valid HTML in your pages, it will make life much simpler.

mutsuenmei
05-23-2005, 12:56 AM
Hi, thank for the replies,

My bad, didn't set the link depth so that is why I got the errors...I though it was automatic?

Regarding the html syntax, I think it is valid to use an empty anchor, ie it doesn't have to appear on the actual webpage.

After setting the link depth the html fragment works great!

btw, after using Sunrise for the last few day..I think it's pretty sweet!!

thanks
Mutsu