|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Using a pre-processor for dynamic inputs
At 05:21 AM 9/11/2004, Mike wrote:
(a) if the inputs are fairly predictable in structure, you can write your stylesheet to interpret the inputs. For example, you might supply a parameter to the stylesheet of the form: Since the OP is a newbie, I hasten to add that simple cases of this are often handled with string-valued parameters, not node-trees, so you could say for example saxon in.xml stylesheet.xsl name='robin' size='small' and get the same effect. It's easy to do, requires a little less overhead, and (like the more complex solution) binds the values at run-time, when they're required. It was also subsequently written: Or even better, put the condition in the match pattern: But unfortunately, match patterns like match="Species[Extinct=$extinct and Genus_Name=$name]" aren't legal in XSLT 1.0 (no variable or parameter references allowed there), so you're back to the in-template conditional test.... Cheers, Wendell ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
|
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
|

Cart








