Extra span tag associated to fragment

I have a page header in a JSPF that I include on all pages. It works fine everywhere except on one page, where it renders twice a <span> tag and the text it contains, thereby showing the text twice with a slight offset. As if this was not strange enough, the extra span tag shows up in an altogether different spot in the page source.
I tried deleting the include, and then inserting it again (with the include deleted, both span tags get deleted). I tried copying the <div> tag with the include from a page where it worked. To no avail: the text still appears twice.
Any pointers, anybody???
Thanks,
Luca

Can you pls post your JSP page source (without the JSPF) which is producing the 2 spans? And then in a second post, show the source from the browser at runtime.... let's troubleshoot that first.
Also, when you use Preview in the designer, do you get 2 spans?
I'll see if I can get some eyes on it...
v

Similar Messages

  • Needless inline styles and span tags

    OS: Win XP SP 2
    Product: RoboHelp HTML 6
    Output: WebHelp
    I am finding some instances of needless inline styles and
    span tags in some topics in a project. Around these problematic
    instances are plenty of instances that have no problem. I used
    non-problematic instances as guides for correcting the problematic
    instances. Fortunately, RH hasn't overwritten any of my
    corrections.
    I am concerned about the insertion of needless inline styles
    and span tags at two levels. First, I see them as indicators of
    inconsistency. Whether the inconsistency is in myself or in RH, I
    don't know (but I want to eliminate it). Second, needless code is
    wasteful (esp., wastes time in code view).
    Has anybody seen this before? Does anyone know or suspect a
    cause?
    SAMPLE 1
    RH6 created: <p><span><span
    style="font-weight: normal;">blah blah yaddi
    yaddi</span></span></p>
    I corrected: <p>blah blah yaddi yaddi</p>
    SAMPLE 2
    RH6 created: <p style="font-weight: normal;"><span
    style="font-weight: normal;">blah blah yaddi
    yaddi</span></p>
    I corrected: <p>blah blah yaddi yaddi</p>
    SAMPLE 3
    RH6 created: <p style="font-weight: bold;"><span
    style="font-weight: bold;">blah blah yaddi
    yaddi</span></p>
    I corrected: <p style="font-weight: bold;"><>blah
    blah yaddi yaddi</p>

    Some of this has to do with how users have applied styles in
    WYSIWYG mode; for example, if you double click a word (which
    selects the space after) and apply Bold, then later select the word
    by dragging the cursor to select only the word (which doesn't
    select the space after), RH will usually surround the selected
    characters with "normal" span tags and often leave the bold in
    place.
    This same type of style formatting might have been repeatedly
    done in the original form that might have been imported (Word,
    Frame, etc.). So, then, if you compound the code bloat from an
    imported file with additional formatting in RH, well you do the
    math.
    I've seen code wherein a six-word sentence might be saddled
    with as many as 10-12 SPAN tags and might stretch into 6-7 lines of
    code!
    However, these are still flat files, not binary; you'd need a
    ton of extra code to increase the aggregate file size a lot. Heck,
    your graphics will usually take more room than your topics. One of
    our child projects has 153 .htm files at 3.25 MB, whereas the
    aggregate of .gif, .jpg, and .bmp graphics exceed 4 MB. My view has
    always been this: until the underlying code affects the format I
    expect to see in my output, I consider extra SPAN and KADOV tags to
    be nothing but white noise.
    Good luck,
    Leon

  • Dreamweaver intermittently adds extra InstanceEndEditable tags

    Twice in the past couple weeks, members of the team I work with have updated templates, then tried to update a page associated with the template.  The update was not successful because Dreamweaver had added extra InstanceEndEditable tags to the page. 
    Here's what we should have seen:
    <div><!-- InstanceBeginEditable name="example" --><a id="123" href="http://www.example.com">Test Example</a><!-- InstanceEndEditable --></div>
    Here's what we saw:
    <div><!-- InstanceBeginEditable name="example" --><a id="123" href="http://www.example.com">Test Example</a><!-- InstanceEndEditable --><!-- InstanceEndEditable --><!-- InstanceEndEditable --></div>
    Another team member would then get the updated template and apply it to the same page, but this time, Dreamweaver would not add the extra tags.
    We haven't figured out a pattern here.  The templates and pages are otherwise correctly coded, and they don't have other issues.  Has anyone else seen this problem?  If so, is there a way to prevent it from happening?  Thank you.

    Unless the issue is 'reproducible at all times', it cannot be treated as a bug. In your case, since it is intermittent, I think it's more of a behavioral pattern - so from now, for a few days, can you make a note of your workflow at all times and notice when or at what stage this happens? This will help us identify its cause.
    -ST

  • Easy way to insert a span tag?

    Hey all,
    I was just curious if there was an easy way to wrap selected text or what not with a <span></span> tag by clicking a button or something similar?
    There is of course the "Insert Div Tag" option, but is there one like this for spans? I feel like maybe I'm just missing this somewhere... :-)
    Thanks!
    Peter

    Well, most of the time when you select some text and apply a different formatting, it will automatically add a span tag for you...
    But if you want to manually put one, the quickest way is in code view (I work in split view most of the time...), but if you don't want to go inside the code, there are other ways...
    Go into the Insert menu and choose Tag. Then go to the HTML tags section and in the right select span and click Insert. Clicking on the Tag Chooser button in the Common section of the Insert panel will do the same.
    A quicker way would be to right-click, select Insert HTML...(or Wrap Tag if you made a selection) and select the span tag, then it Enter (Return).
    Hope this helps.
    Nelson

  • How can I "nest" CSS span tags?

    I have a piece of text to which I want to apply three successive CSS classes, making increasingly broad selections of the text.  (Or, conversely, apply to the broadest span of text and then selectively style smaller subsets of the inner text.)  Either way I try this, the "span" tags do not end up nested.
    For example, I first select a single word and apply CSS style-1 to just the one word.  Next, I select 3 words (one being the word I just styled) and apply CSS style-2 to that.  Finally, I select the entire clause, which contains the 3 styled words, and apply style-3 to that.
    The objective is to have the span tags "nest" -- but when I apply the styles in the Design view using the "Class" selector, the resulting HTML has the span tags starting and stopping for each bit of text, rather than being nested.  Rather than that, I want to end up with the effect below:
    <span class="style-1">a clause <span class="style-2">with <span class="style-3">some</span> words</span> within the clause.</span>
    I can, of course, do this by hand in the Code view but it is very time-consuming.  Is there a way to achieve this in the Design view?

    Are you attempting something like this?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Span Tag Nesting</title>
    <style type="text/css">
    .style-1 {
        font-weight:bold;
    .style-2 {
        color:green;
    .style-3 {
        font-style:italic;
    </style>
    </head>
    <body>
    <span class="style-1">a clause <span class="style-2">with <span class="style-3">some</span> words</span> within the clause.</span>
    </body>
    </html>
    I'm pretty sure you're going to be stuck adding the span tags in by hand. As far as I can tell, there's no way to get DW to nest <span> tags from within Design View. With the way span tags currently work in DW, there is no way for the program to know you want them nested or overwritten when you select an area of text in Design View.
    That might be an interesting Feature Request: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Duplicate SPAN tags are not new in V9

    Contrary to the broadcast announcement about the new DLL being offered, the SPAN tags problem is not new in RH 9. However, what I've seen is more of a random insertion process (going from one or two instances in a topic to a dozen or more) than one of SPAN duplication for the same string.
    I've encountered the issue in 8.0.2.208, and have simply removed them in the code and saved the topic before exiting HTML View. Just another adorable little RH quirk...
    Good luck,
    Leon

    I copied the version 2.0 folders ('catalogs' and 'catalog folders') to 'C:\Users\All Users\Adobe\Photoshop Album' overwriting the ones created during the program installation. Here I supposed that there are no changes in file structure in those files
    My need here is to keep the links between the photos and the tags made by version 2. Having now only a Vista machine I cannot 'Upgrade' from version 2 to 3.2 because the version 2.0 would not install in Vista

  • Mysterious FM- RH style mapping override with span tag

    I have been working in a super clean FM and RH project that is has one to one mappings for all my styles in the FM to same named styles in RH, just to be sure I do not mess up. Still, though, I seem to get a mystery mapping.  For my bullets and lists, RH is adding a span tag with font set to Times Roman.  I cannot find *any* css that has Times Roman. I've checked things like my character tags, my cross reference tags, etc and cannot find a correlation.  Where would this be added if it's not in my FM Format definitions and not in my RH Style definitions. I tried reimporting the book to see if it needed a tickle of the project mappings template but that didn't help.
    I'm attaching some images in hopes someone has ideas. The example does not appear to be times roman in Design view, but in more complex topics it's pretty obvious.
    I have so many hacks for single sourcing now, about ready to give up.
    Got help?
    FM 10
    RH 11

    Thanks for the fast reply Arnis,
    I did not even notice that the span tag ended on the spaces, so it can't be what's causing the odd previews I'm seeing.  So it seems my original question is not well thought out, so I'm going to retest with some other style changes.
    Still, though I'm wanting to follow up on getting rid of the Times tag anyway.  The bullets are always defined as Verdana. Bullet is set to use "Default Font" while BulletLevel2 uses "Bold" (the char def for Bold is also Verdana).  Is there some place I have to map "tabs" to not be Times? I dont think it's the Default Font issue because bullet 2 uses Bold.
    Here are some screenshots.

  • How to avoid extra div tags, when we add components using cq:include

    I tried using the below code in my component jsp from forums to remove those extra div tags when we try to add components using <cq:include tags.
    <%
       if (WCMMode.fromRequest(request) != WCMMode.EDIT && WCMMode.fromRequest(request) != WCMMode.DESIGN) {
           IncludeOptions.getOptions(request, true).forceSameContext(Boolean.TRUE);
    %>
    But this code helped to remove most of the extra div tags , but still adds this extra div tag to the first component I add using  <cq:include tag.
    its a basic and very critical necessity to maintain our markup design,But due to this  dynamically added extra div tag will hinder the html and css behaviour of the page.
    Appreciate your help to resolve this issue.
    Thanks

    Hi,
    Can you try below if you really dont want to include anything during include.
    <%
    IncludeOptions opts=null;
       if (WCMMode.fromRequest(request) != WCMMode.EDIT && WCMMode.fromRequest(request) != WCMMode.DESIGN) {
    opts= IncludeOptions.getOptions(request, true);     
    opts.forceSameContext(Boolean.TRUE);
    opts.setDecorationTagName("");
    %>
    Thanks,
    Pawan

  • Extracting innertext from multiple span tag from the same li tag

    Hello, i want to extract after navigation the innertext of the <span> tag  but it is very difficult because it comes a a full list but i want to extract it one by one and then put it in a listview...
    THE DOCUMENT:
    </li><li class="video-list-item related-list-item "> <div class="content-wrapper">
    <a href="https://www.youtube.com/watch?v=94Rq2TX0wj4" class="content-link spf-link yt-uix-sessionlink" rel="spf-prefetch" title="Martin Solveig &amp; GTA - Intoxicated (Official Music Video)" data-sessionlink="ei=VDvNVJ-XI6a3-APo7YDYBw&amp;feature=relmfu&amp;ved=CAYQzRooAw"> <span dir="ltr" class="title" aria-describedby="description-id-785839">
    Martin Solveig &amp; GTA - Intoxicated (Official Music Video)
    </span>
    <span class="accessible-description" id="description-id-785839">
    - Duration: 3:15.
    </span>
    <span class="stat attribution">
    <span class="g-hovercard" data-ytid="UCpDJl2EmP7Oh90Vylx0dZtA" data-name="relmfu">
    by <span class=" g-hovercard" data-ytid="UCpDJl2EmP7Oh90Vylx0dZtA" data-name="">Spinnin' Records</span>
    </span>
    </span>
    <span class="stat view-count">1,097,934 views</span>
    </a>
    </div>MY CODE: Dim dc As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("li")
            For Each jg As HtmlElement In dc
                Dim kl As String = jg.OuterHtml
                If kl.Contains("yt-uix-scroller-scroll-unit") Then
                    Dim kd As HtmlElementCollection = jg.GetElementsByTagName("a")
                    For Each kw As HtmlElement In kd
                        Dim kkCOLLECTION As HtmlElementCollection = kw.GetElementsByTagName("span")
                            Dim dd As String = jg.GetAttribute("data-video-title")
                            Dim LinKi As String = kw.GetAttribute("href")
                            Dim kbv As String = LinKi.Remove(43)
                        Dim View_upld As String = kkCOLLECTION(1).InnerText
                            pl.Add(dd)
                            pll.Add(LinKi)
                            plll.Add(View_upld)
                            For Each nn As String In pl
                                For Each nnn As String In pll
                                    For Each nnnn As String In plll
                                        Dim lvi As New ListViewItem
                                        lvi.Text = (dd & vbCrLf)
                                        lvi.SubItems.Add(View_upld & vbCrLf)
                                        lvi.SubItems.Add(kbv & vbCrLf)
                                        ListView1.Items.Add(lvi)
                                    Next
                                Next
                            Nextit seems i am doing it wrong. i want it to extract the innertext of each span so i can put it in the listview cells.Please, this is very important as its a project i am working on.

    I would take a look at http://htmlagilitypack.codeplex.com/
    http://pauliom.wordpress.com

  • SPAN tags disappearing

    I am using an older version of RH (X4) but I was hoping
    someone could help. I have a HTM file that has some <SPAN>
    tags at the bottom of the document. When I view the HTM file in
    Notepad the tags are there. When I import the HTM into RH as a
    topic and look at the TrueCode the tags are not displayed. I use
    the ID on the span tags for some scripting and need the tags.
    How/why is TrueCode hiding/removing these tags?

    Hi and welcome to the forums.
    This has been my bone of contention with RoboHelp forever.
    Each new version, I download the trial version and check to see if
    this has been fixed. I am still using version 2000. The good news
    is that it looks like it was fixed in version 6.
    This tag removal is done in the WYSIWYG editor, so if you
    don't open the topic in that editor you can preserve your SPAN IDs.
    What I do is make a copy of the tags and place themas a comments in
    the True Code editor, then if I do edit in the WYSIWYG editor, I
    only need to open up the True Code and copy and paste from the
    comments and close the topic.
    Good luck,
    John

  • Exporting to Tagged PDF: Why would every single line of text come out as a separate Span tag?

    I've inherited an InDesign file for which I have to generate a 508-compliant PDF. Normally this is pretty smooth with InDesign, and most issues have historically been pretty easy to fix.
    With this document, though, every single individual line is exporting to tagged PDF as a separate <Span> tag.
    I've turned off overrides and hyphenation, and looked for manual line breaks. I've also tried exporting it out to IDML and opening that, and the resulting PDF was no better.
    If anyone has an idea of whether there's some odd setting I'm missing that could explain why this is happening, that would be very helpful!

    Thank you for being so helpful and constructive.
    I tried to look at the ASDL settings, john46 but it's asking me for my HomeHub password... the only password I have is for our wireless network and that one doesn't work. 
    I can't test the phone line right now because I'll have to disconnect the internet and I'm currently working on another computer whilst chatting on this one with you. However I will do that later. I'll also look at the RogerB link you provided. 
    Truth is, we're pensioners who use the internet but we havent a grain of technical understanding between us. We're old fashioned enough to admit that we just want someone who knows what he's doing to come here and fix it for us. It's already cost us £130 for an engineer to come out from OpenReach to tell us the phone line is OK and it's the router causing the problem. Best case scenario is that another BT engineer who knows about broadband comes out and does it because the last BT person that I spoke to in Delhi did actually confirm that there is a fault on the BT side. I'm getting so frustrated right now I'll probably call out an independant I find in Yellow Pages and get charged an arm and a leg again and I'll then cancel with BT in a fit of pique.

  • Only keep text that is in certain span tags?

    Hi,
    Does anyone know if there is a way to do this with find and
    replace? Go through a document and keep all text that is within a
    span tag with the class "test"? For example, if this is the
    document:
    <span class="test">one</span>
    adsfasdfasd
    <span class="asdfds">two</span>
    adsfadsf
    <span class="test">three</span>
    adfasdfas
    <span class="asfdasdf">four</span>
    Then it should look like this when finished:
    <span class="test">one</span>
    <span class="test">three</span>
    Thanks, Matt

    I would do three steps -
    1. Find the tags you want to keep and change them to some
    other tag, e.g.,
    <span> => <h6> | <address> | something
    like that.
    2. Strip all the remaining span tags.
    3. Revert the first change.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Matt_M_" <[email protected]> wrote in
    message
    news:eujong$dvk$[email protected]..
    > Hi,
    >
    > Does anyone know if there is a way to do this with find
    and replace? Go
    > through a document and keep all text that is within a
    span tag with the
    > class
    > "test"? For example, if this is the document:
    >
    > <span class="test">one</span>
    > adsfasdfasd
    > <span class="asdfds">two</span>
    > adsfadsf
    > <span class="test">three</span>
    > adfasdfas
    > <span class="asfdasdf">four</span>
    >
    > Then it should look like this when finished:
    >
    > <span class="test">one</span>
    > <span class="test">three</span>
    >
    > Thanks, Matt
    >
    >

  • Why some extra XML tags are created when viewed a XML in Adobe Illustrator with Esko plugin?

    We see some extra XML tags are created when viewing a XML in Adobe Illustrator with Esko plugin. Why these extra lines are created ?
    Screenshot of XML and XML viewed in AI below(the extra XML tags outlined in red):

    Hi Graffiti,
    Thanks so much for your resply.  I am happy to say that the problem has been fixed by my customer updating her version of Adobe Reader 9 to the latest version.  I had sent her a few suggestions on how to try to fix the problem including that one from info I had read on the forum etc.. and that was the solution that worked.  I am so relieved that I was able to fix the problem and to answer your question the blank pages were only graphics no text but they were the only pages that the graphics took up the whole page.  I thought that was strange and had her change a setting in preferences for printing large images a solution I read in the forum but it did not work.   

  • How to get span tags (with id) around each single word of text?

    Hello everyone,
    i want to use edge animate for my epub3 books and one basic feature is to have it read aloud while highlighting the words. This is pretty simple to achieve in epub3, you just have to give each word an id (span tag) and have a corresponding smil file with the timecodes and the epub3 reader does the hightlighting automaticly. How can i insert text into edge animate and wrap every word in an span tag? I can provide the text preprocessed with tags like this:
    <span id="W1">Aus</span> <span id="W2">den</span> <span id="W3">gesammelten</span> <span id="W4">Brombeeren</span> <span id="W5">wollten</span> <span id="W6">sie</span> <span id="W7">später</span> ...
    and got a smil file like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <smil xmlns="http://www.w3.org/ns/SMIL" version="3.0">
    <body>
    <par id="par1">
    <text src="../pg02.xhtml#W1" />
    <audio src="../audio/pg02.m4a" clipBegin="0.000000s" clipEnd="1.382498s" />
    </par>
    <par id="par2">
    <text src="../pg02.xhtml#W2" />
    <audio src="../audio/pg02.m4a" clipBegin="1.382498s" clipEnd="1.644169s" />
    </par>
    <par id="par3">
    <text src="../pg02.xhtml#W3" />
    <audio src="../audio/pg02.m4a" clipBegin="1.644169s" clipEnd="1.932008s" />
    </par>
    <par id="par4">
    <text src="../pg02.xhtml#W4" />
    <audio src="../audio/pg02.m4a" clipBegin="1.932008s" clipEnd="3.009222s" />
    </par>
    <par id="par5">
    <text src="../pg02.xhtml#W5" />
    <audio src="../audio/pg02.m4a" clipBegin="3.009222s" clipEnd="3.253448s" />
    </par>
    <par id="par6">
    <text src="../pg02.xhtml#W6" />
    <audio src="../audio/pg02.m4a" clipBegin="3.253448s" clipEnd="3.650317s" />
    </par>
    <par id="par7">
    <text src="../pg02.xhtml#W7" />
    <audio src="../audio/pg02.m4a" clipBegin="3.650317s" clipEnd="3.842209s" />
    </par>
    I hope it is clear what my problem is, can you help me please?

    Is your text vertical or horizontal?
    With vertical scroll, I make a huge empty paragraph with a bunch of "Enter"-spaces. Example:
    Then I just fill in what I need. I make sure my initial 'empty' paragraph is big enough to fill my biggest piece of scrolling text. Then I just place the big effected clip on it's own video track.
    For horizontal scroll, it's a bit different. I simply type in the longest piece of text that i'll be using and use that as my template. For shorter lines of text, I put in blank spaces. To ensure that the longest and shortest text lines are going at the same speed, I put the longest clip on it's own video track, and the shortest clip on another video track, but directly above the other one. I then put a period (".") at the beginning and end of my short text line and see on my timeline if the period appears at the same time as the first/last letter of my longer text block. Example:
    V2 = . The sky is blue .
    V1 = Dogs eat grass and cats meow. Cows don't bark.
    Once I see that it's at the exact same speed, then I replace the periods with spaces.

  • A Find expression to find everything in span tag

    I imported word doc into my robohelp project and there is a lot of span tag junk i want to get rid of.
    Is there an expression i can build in the "find and replace" tool that will find any span tag and its contents?
    In the following example I want to delete the whole string including the brackets:
    <span style="letter-spacing: .05pt;">
    I'm thinking possibly a wildcard like: <span ***>
    I don't see a wildcard option in robohelp help related to building find expressions.

    Humour me.
    Create a Word document with a table that has a named style applied.
    Create a Rh project with a table style given the same name. It does not have to look the same and it might be better if it does not, you will know whether or not the mapping is working.
    Import making sure you map the table styles.
    Do you still have unacceptable span tags?
    If the above idea does not solve the problem, give me some examples of your span tags, especially the ones where your expression is not working. I will try to come up with something but it might take a day or two before I can get back to you.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

Maybe you are looking for

  • Report for monthly sales(sales office wise,sales group wise,plant wise)

    Please send the Report for monthly sales(sales office wise,sales group wise,plant wise)  with T.CODE.,

  • Can I install adobe acrobat 9 Pro on my MacBook Pro (10.8.5)

    Can I install adobe acrobat 9 Pro on my MacBook Pro (10.8.5)??

  • Help in the query

    hi folks, Help me to build the query here. Tables BKPF - fields belnr, blart        BSEG - fields kunnr,wrbtr, zuonr I need to get the data into a single internal table whose strucutre consists of fields kunnr, blart,wrbtr and zuonr the common field

  • Multi currency payment program

    Hi Experts, how to implement multi currency payment program for international payroll. and also how to implement multi currency offcycle payments. give me some brief procedure, right now my client doing only one currency, upgrading to multi currency

  • Develop mode keeps flikering

    Not all the time, but there are times when i am working on an image, generally after I've been working on it in Photoshop. Once it comes back into light room and I want to do just about anything to it everything goes dark and comes back with the adju