-If you want to customize the actual main body output of 📰 Caudex,
- you will need a pattern like this :—
-
-```xml
-<?xml version="1.0"?>
-<transform
- xmlns="http://www.w3.org/1999/XSL/Transform"
- xmlns:exsl="http://exslt.org/common"
- xmlns:html="http://www.w3.org/1999/xhtml"
- xmlns:书社="urn:fdc:ladys.computer:20231231:Shu1She4"
- exclude-result-prefixes="exsl"
- version="1.0"
->
- <书社:id>example:modify-caudex-index</书社:id>
- <!-- Create a template with increased priority, excluding elements with a `@data-caudex-parse´ attribute. -->
- <template match="/html:div[@书社:parsed-by='urn:fdc:ladys.computer:20240204:Caudex:catalog.xslt'][@class='index' or @class='fullindex'][not(@data-caudex-parse)]" priority="1">
- <!-- Add the attribute to the element in a variable. -->
- <variable name="toparse">
- <copy>
- <attribute name="data-caudex-parse"/>
- <copy-of select="@*|node()"/>
- </copy>
- </variable>
- <!-- Apply templates to the contents of the variable, saving the result. -->
- <variable name="parsed">
- <apply-templates select="exsl:node-set($toparse)/*"/>
- </variable>
- <!-- Do something with the result. -->
- <for-each select="exsl:node-set($parsed)/*">
- <!-- … -->
- </for-each>
- </template>
-</transform>
-```
-