Re: XSLT Template allowing separation of data from XSLT presentation
Jeremias Maerki <[email protected]> Mon, 03 Nov 2003 21:45:47 +0100
| Newsgroups | gmane.comp.krysalis.user |
|---|---|
| Message-ID | <[email protected]> |
Hi James, you got a point although I think that my approach makes sense for that particular document. You realize that the XSLT gets rather complicated. For a normal use-case, of course, your approach makes much more sense and is also the approach I would use. So I think it would be best if we came up with some kind of "real-world" example, an invoice perhaps. I have such a thing from a presentation on XSL-FO I did. I think I'll put that in the distribution. What do you think? On 03.11.2003 13:14:40 James Lavery wrote: > Hi everyone, > First of all - congratulations and thanks to the Krysalis team for such > a good system - it's just what we needed for generating barcodes in our > PDF documents. > > One problem I had with the sample data and stylesheets which came with > Krysalis was the fact that the barcode data (barcode.xml) had the > barcode format and definition in it. It seems to me that the barcode > formatting should be held in the XSL file, not the XML data. > > To this end, I've put together an XSL template which takes the data to > be converted to a barcode, along with a variable containing the barcode > configuration. I think this is an improvement on the examples supplied > - and hope others find it useful! > > I assume I can't send attachments to the list, so below my signature are > snips of the files concerned. Comments/criticisms/suggestions welcome. Jeremias Maerki ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/