broken stylesheet - inserting anchors into output(?)

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
pdxwordsmith
Sr. Propeller Head
Posts: 100
Joined: Thu Oct 30, 2008 2:12 pm
Location: Portland, OR

broken stylesheet - inserting anchors into output(?)

Post by pdxwordsmith »

Halp!

I took a chainsaw (internal text editor) to my stylesheet and wacked out a bunch of stuff yesterday. Now, when I build, weird things are happening to my output:
stylesheet-weirdness.jpg
It appears that the font color changes wherever there is a class change (keyword or p class), but Flare appears to be adding <a name="aanchor"> tags that are not in the XML source.

Weirdly, I've tried using a stylesheet backup from before the wacking and I'm still experiencing the problem so I'm wondering if something else is going on.

Also, I have a span class called Keyword which changes the font color.

Here's the XML snippet:

Code: Select all

    <body>
        <h2 class="H2">Silverlight <MadCap:keyword term="Silverlight Isolated Storage configuration" />Application Storage <MadCap:concept term="All" />configuration</h2>
        <p class="Para_0">Silverlight Application Storage must be enabled for <MadCap:variable name="iTV-Manager.Product_itvManager" />. If <MadCap:variable name="iTV-Manager.Product_itvManager" /> displays a message indicating that it is not enabled, follow these steps:</p>
Here's the output HTML:

Code: Select all

        <h2 class="H2">Silverlight <a name="kanchor1">Application Storage </a><a name="aanchor2"><madcap:concept term="All">configuration</madcap:concept></a></h2>
<a name="aanchor2">        </a><p class="Para_0"><a name="aanchor2">Silverlight Application Storage must be enabled for <span class="iTV-ManagerProduct_itvManager">iTV Manager</span>. If <span class="iTV-ManagerProduct_itvManager">iTV Manager</span> displays a message indicating that it is not enabled, follow these steps:</a></p>

Any ideas?
You do not have the required permissions to view the files attached to this post.
Hanna

Flare 6.1.0, WebHelp, PDF, and Word targets, sometimes import from FM 8.0p277 and 9.0p196
Submit bugs and feature requests here: http://www.madcapsoftware.com/bugs/submit.aspx
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: broken stylesheet - inserting anchors into output(?)

Post by NorthEast »

That's pretty strange; I doubt it's your stylesheet though.

In your output, the <a ...kanchor ..> tags are inserted as the bookmarks for index entries, and the <a ...aanchor ..> tags are inserted for the concept term markers.

However, there shouldn't be any text contained inside these <a ...> tags in the output; which is why the text that is inside them is blue (as presumably you've set the a style as blue for your hyperlinks).

For example, in your source where you have...

Code: Select all

Silverlight <MadCap:keyword term="Silverlight Isolated Storage configuration" />Application Storage 
I'd expect to see a bookmark (<a ...kanchor.. ) in the output for the index entry...

Code: Select all

Silverlight <a name="kanchor1"></a>Application Storage 
But in your output, the closing </a> tag seems to be in the wrong place...

Code: Select all

Silverlight <a name="kanchor1">Application Storage </a>

Anyway, there's clearly something going wrong when Flare is generating the output, the <a ...> tags seem misplaced.
Also, is there anything set in your project that could be inserting additional bookmark tags too; e.g. do you have an auto-index file set up?

Might be one for MadCap support.
Post Reply