apply-imports

Import precedence requires that template rules in main stylesheets have higher precedence than template rules in imported stylesheets. Sometimes, however, it is useful to be able to force the processor to use a template rule from the (lower precedence) imported stylesheet rather than an equivalent rule in the main stylesheet.

Syntax
<apply-imports> ::= "apply-imports"
Options

None

Elements

None

Examples

<apply-imports> statements are standalone and do not have an associated value or block.

match using "//list" { apply-imports }

giving

<template match="//list"> <apply-imports/> </template>
Errors

<apply-imports> can only be used within a match or a proc statement. or block.

stylesheet { version "1.0" apply-imports }

would give

**** (106) Unexpected symbol "apply-imports" in line 4 Check spelling, no suggestion.
Copyright 2024 Hugh Field-Richards. All Rights Reserved.