Subject: Solution and new problem ...RE: Problems with entitys and Jade From: "Joaquin Bravo" <jbravo@xxxxxxxxxx> Date: Tue, 19 Jan 1999 12:05:08 +0100 |
Hi, I've found a solution, but the problem is that does not work in XML SGML example ---------------------------------------------------------------------------- Ejem1.sgm ------------------- <!DOCTYPE doc [ <!ELEMENT doc - O ( p+ )> <!ELEMENT p - - ( #PCDATA )> <!ENTITY aacute SDATA "[aacute]"--=small a, acute accent--> ]><doc> <p>Primer Parrafo</p> <p>Procedimientos básicos</p> <p>Ultimo Parrafo</p> Ejem1.dsl --------------- <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN"> (declare-flow-object-class formatting-instruction "UNREGISTERED::James Clark//Flow Object Class::formatting-instruction") (declare-flow-object-class element "UNREGISTERED::James Clark//Flow Object Class::element") (element p (sosofo-append (literal ":p.") (procesar (node-property 'content (current-node)) ) (literal (string-append ":ep." "\U-000D")) ) ) (default (process-children)) (define (procesar ndl) (if (node-list-empty? ndl) (empty-sosofo) (sosofo-append (if (equal? (node-property 'class-name (node-list-first ndl)) 'sdata) (sosofo-append (case (node-property 'system-data (node-list-first ndl)) (("[aacute]") (data-sosofo (aacentuada)) ) ;Lista de SDATA ;.............. ) ;(process-node-list (node-list-first ndl)) ) (process-node-list (node-list-first ndl)) ) (procesar (node-list-rest ndl)) ;) ) ) ) (define (data-sosofo str) (make formatting-instruction data: str) ) <![ CDATA [ (define (aacentuada) "&aa." ) ]]> Convert with Jade.... jade -t sgml -d ejem1.dsl ejem1.sgm > output.ipf output.ipf ---------------- :p.Primer Parrafo:ep. :p.Procedimientos b&aa.sicos:ep. :p.Ultimo Parrafo:ep. XML example ---------------------------------------------------------------------------- Ejem1.xml ------------------ <!DOCTYPE doc [ <!ELEMENT doc (p+)> <!ELEMENT p (#PCDATA)> <!ENTITY aacute SDATA "[aacute]"--=small a, acute accent--> ]> <doc> <p>Primer Parrafo</p> <p>Procedimientos básicos</p> <p>Ultimo Parrafo</p> </doc> jade -t sgml -d ejem1.dsl xml.dcl ejem1.xml > output.ipf output.ipf ---------------- :p.Primer Parrafo:ep. :p.Procedimientos b&aa.sicos:ep. :p.Ultimo Parrafo:ep. But the problem is that I'am working with XML documents and parsers XML (xml4j) and the SDATA in not accepted by XML. How can I do it then? Bye and thank you very much -----Mensaje original----- De: Joaquin Bravo <jbravo@xxxxxxxxxx> Para: dssslist@xxxxxxxxxxxxxxxx <dssslist@xxxxxxxxxxxxxxxx> Fecha: lunes 18 de enero de 1999 10:41 Asunto: Problems with entitys and Jade >Hi, > >I have got the following problem, >I've got a SGML document > >...... ><p>Procedimientos básicos</p> >...... > >that I want to convert a IPF working with a DSSSL and Jade > >:p.Procedicimientos b&aa.sicos:ep. > >My question is, how could I convert the entity á to a &aa. in the >output format. > >Bye and thank you very much > > > 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: line breaks in rtf backend., Horst Kucharczyk | Thread | horizontal layout of table cells, STE MARIE, PAUL |
RE: line breaks in rtf backend., Pawson, David | Date | horizontal layout of table cells, STE MARIE, PAUL |
Month |