[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Resolve optional conref and apply another template

Subject: Re: Resolve optional conref and apply another template
From: "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 17 Jan 2022 22:49:57 -0000
Re:  Resolve optional conref and apply another template
On Mon, Jan 17, 2022 at 10:36:38PM -0000, rick@xxxxxxxxxxxxxx scripsit:
[snip]
> I am not sure how to integrate the two templates so that I can convert
> conref notes to tables too. Any pointers would be appreciated. Thank
> you very much.

Generally speaking, when converting from an archival XML format to a
published representation, you'll have a regularization pass, a merge
pass, a processing pass, and a rendering pass. (Each of which might have
multiple stages!)

Conrefs should resolve in the merge pass.

Turning some notes into simple tables should happen in the processing
pass, so that template shouldn't ever see a conref.

Alternatively, if you're not using XSLT 1, you can resolve the conref
into a variable and apply-templates to the contents of the variable.
The problem with this approach is that it becomes a cruelty to
future-you, or anybody else who has to maintain the code.


-- 
Graydon Saunders  | graydonish@xxxxxxxxx
^fs oferiode, pisses swa mfg.
-- Deor  ("That passed, so may this.")

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.