Subject: Re: CASE problem From: Tony Graham <tgraham@xxxxxxxxxxxxxxxx> Date: Wed, 23 Jun 1999 12:25:39 -0400 (EST) |
At 23 Jun 1999 08:09 -0700, Wroth, Mark wrote: > I'm attempting to write a DSSSL stylesheet, to be processed with Jade, which > takes a series of items and prints them as three separate sequences, > depending on the value of an attribute on the <item>. So if I have: > > <item id="1" dec="rtn">....</item> > <item id="2" dec="reg">....</item> > <item id="3" dec="reg">....</item> > <item id="4" dec="rtn">....</item> > <item id="5" dec="pend">....</item> Why don't you use: (select-elements (children (current-node)) '(item (dec rtn))) You may need to quote "dec", etc. With the DSSSL2 extensions in Jade, you can also do: (element (item attributes: (dec rtn)) ...) These don't address your case question, I know, but they may make your code simpler. Regards, Tony Graham ====================================================================== Tony Graham mailto:tgraham@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9632 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ====================================================================== DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
CASE problem, Wroth, Mark | Thread | RE: CASE problem, Avi Kivity |
Re: About the paragraph object., Joerg Wittenberger | Date | Re: DSSSL for the Java Virtual Mach, Daniel Mahler |
Month |