[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Capturing result of <xsl:apply-templates/> in a v
Right... in the example I gave, the template will always return at least an
element, but I should have generalized for null results.
On Tue, 6 Dec 2011, David Carlisle wrote: On 06/12/2011 19:52, David Sewell wrote:the + there means this will generate an error if the apply-templates generates no output, whereas the original version would just silently produce nothing. a * would allow this empty result.Just now when writing a transform, for temporary diagnostic purposes I needed to produce messages showing (1) the initial string value of an input element before template application, and (2) the output string value after template application. Oddly enough I have never before wanted to do precisely that task.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|