Skip to content

Example: Using xsl:namespace-alias to Generate a Stylesheet does not work as shown #71

Description

@birdya22

The first xsl:namespace-alias example in section 11.1.4 does not produce the output shown.
It only produces the first template.

The issue is in this template:

<xsl:template match="elements">
  <axsl:template match="/">
     <axsl:comment select="system-property('xsl:version')"/>
     <axsl:apply-templates/>
  </axsl:template>
</xsl:template>

The instruction
<axsl:apply-templates/>
should be
<xsl:apply-templates/>
so that the block template is invoked and creates the missing templates.

This is also the case in the current version of the XSLT4.0 spec.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions