Subject: RE: Escape characters for 'literal'? From: "Malcolm, Douglas J" <Douglas.Malcolm@xxxxxxxxx> Date: Wed, 19 Apr 2000 16:31:16 -0400 |
Never mind - a colleague and I solved it by approaching it a different way. Here is the working code snippet: (make sequence (make element gi: "table" (make element gi: "tr" (make element gi: "td" attributes: (list (list "valign" "top")) (make element gi: h1elem attributes: (list (list "CLASS" (gi sect))) (make element gi: "A" attributes: (list (list "NAME" name)) (if (string=? (element-label (current-node)) "") (empty-sosofo) (make element gi: "nobr" (literal (element-label (current-node)) nsep)))))) (make element gi: "td" (make element gi: h1elem attributes: (list (list "CLASS" (gi sect))) (element-title-sosofo sect))))) Thanks anyway! Douglas Malcolm -----Original Message----- From: Malcolm, Douglas J [mailto:Douglas.Malcolm@xxxxxxxxx] Sent: Wednesday, April 19, 2000 3:38 PM To: 'dssslist@xxxxxxxxxxxxxxxx' Subject: Escape characters for 'literal'? Hi group, I'm running into a small problem trying to pass html tags using 'literal'. I'm trying to put section headers in an html table to achieve a sort of hanging indent when the title is long enough to wrap to another line. Trouble is, Jade does not like me passing "<table>" and other html tags straight through. I get "element Table undefined" errors. Is there an escape character I can use, (already tried / & //) or am I simply using literal incorrectly? Code sample, from where I attempt to change $section-title$: (make sequence (make element gi: h1elem attributes: (list (list "CLASS" (gi sect))) (make element gi: "A" attributes: (list (list "NAME" name)) (if (string=? (element-label (current-node)) "") (empty-sosofo) (literal "<table><tr><td>" (element-label (current-node)) nsep)) (literal "<//td><td>") (element-title-sosofo sect) (literal "<//td><//tr><//table>"))) I know I still have a logic error (if label is empty, I'll be passing bad html), but first I need to get it to pass the table tags. Any suggestions? Thanks in advance, Douglas Malcolm DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Escape characters for 'literal', Brandon Ibach | Thread | Looking for DSSSL stylesheets for H, Ribeiro, Glauber |
Re: Escape characters for 'literal', Russell Steven Shawn | Date | Re: Escape characters for 'literal', Brandon Ibach |
Month |