Subject: Re: [xsl] Best practices when reorganizing content? From: "Dave Pawson dave.pawson@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 21 Mar 2025 20:44:36 -0000 |
On Fri, 21 Mar 2025 at 20:37, dvint@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > My general stylesheet design is to try and leverage templates that match > things and produce output as they are found in the document order. In > some cases the templates will process the content and other times it > will ignore/hide the content. If I'm worried the format will evolve I'll > try and add a wildcard template <xsl:template match="*"> and report > elements that weren't in my original source to trigger a review oof the > output. > If you use the 'catch-all' to tell you what you are ignoring, you can then address those (or ignore them deliberately) Report the parent and element (with or without namespaces as appropriate) then carry on processing the children of the 'surprise' element. works for me. regards -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Best practices when reorganiz, dvint@xxxxxxxxx | Thread | Re: [xsl] Best practices when reorg, Martin Honnen martin |
[xsl] Best practices when reorganiz, dvint@xxxxxxxxx | Date | Re: [xsl] Best practices when reorg, Martin Honnen martin |
Month |