Skip to content

Markup problem in rendering grammar productions in HTML #2353

@ruv

Description

@ruv

there's also some kind of markup problem that means the links within the grammar don't always work properly.

Originally posted by @michaelhkay in #2345 (comment)

The problem is that some local links are incorrect (don't work), and some items don't have links.

For example, in 4.1 Namespace Declarations,
in the line "declare" "default" "element" "namespace" URILiteral,

The html source code for "URILiteral" is:

<a href="#doc-xpath40-DefaultElementNamespaceDecl-URILiteral doc-xpath40-NamespaceDecl-URILiteral">URILiteral</a>

(note a space in the fragment identifier in href)

The code for the first occurrence of URILiteral at the left side is:

<a id="doc-xpath40-DefaultElementNamespaceDecl-URILiteral"></a>
<code><a href="#prod-xpath40-URILiteral">URILiteral</a></code>

(seems correct)

And the code for the second occurrence of URILiteral at the left side is:

<a id="doc-xpath40-NamespaceDecl-URILiteral"></a>
<code>URILiteral</code>

(one anchor is missing, is this intentional?)

The XML source is:

         <scrap role="xpath">
            <prodrecap ref="DefaultElementNamespaceDecl"/>
            <prodrecap ref="NamespaceDecl"/>
         </scrap>

Metadata

Metadata

Assignees

No one assigned

    Labels

    BuildAffects the build infrastructure only

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions