Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicate elements generated in final-fixup mode #99

Open
SSAGitHub opened this issue May 31, 2022 · 0 comments
Open

duplicate elements generated in final-fixup mode #99

SSAGitHub opened this issue May 31, 2022 · 0 comments

Comments

@SSAGitHub
Copy link

When I use the following paragraphStyle in the style2tagmap, this somehow effects my ability to add elements in final-fixup mode.

  <paragraphStyle level="1" structureType="topicTitle" styleName="Heading 1" tagName="title">
     <topicrefProperties topicrefType="chapter"/>
     <topicProperties bodyType="body" format="topic" topicDoc="yes" topicType="topic"/>
  </paragraphStyle>

What ends up happening is that two elements are created instead of one. The template below generates two p elments.

<xsl:template match="li" mode="final-fixup">
    <li>
        <p>
            <xsl:apply-templates mode="#current"/>
        </p>
    </li>
</xsl:template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant