Subject: RE: [xsl] Using a pre-processor for dynamic inputs From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 13 Sep 2004 12:14:01 -0400 |
(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:
<conditions> <condition> <attribute>name</attribute> <value>robin</value> </condition> <condition> <attribute>size</attribute> <value>small</value> </condition> </conditions>
Or even better, put the condition in the match pattern:
<xsl:template match="Species[Extinct='False' and Genus_Name='Casuarius']"> <p>species name is <xsl:value-of select="Species_Name"/></p> </xsl:template>
<xsl:template match="Species"/>
Yeah, I should have explained this is what I wanted, but couldn't get it to work right (because I didn't have the second template)!
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 ======================================================================
--+------------------------------------------------------------------ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/ or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx> --+--
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Using a pre-processor for, Michael Kay | Thread | Re: [xsl] Using a pre-processor for, David Adams |
Re: [xsl] schemas and xslt 2.0 (was, XML User | Date | RE: [xsl] apply-template doesn't hi, Michael Kay |
Month |