[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook] external examples
[moving to docbook-apps] If you're using Saxon or Xalan as your XSLT processor, you can use <programlisting> <mediaobject> <imageobject> <imagedata fileref="yourfile.html" format="linespecific"/> </imageobject> </mediaobject> </programlisting> And turn on the textinsert extension (use.extensions=1; textinsert.extension=1). (You'll need to add the appropriate extensions JAR file to your CLASSPATH.) If you're using XSLTProc as your XSLT processor, you can use XInclude with parse="text". (I haven't tested this one.) <xi:include href="yourfile.html" parse="text"/> I don't know of any solutions if you're using DSSSL Jeff Beal > -----Original Message----- > From: Marcos Dione [mailto:mdione@grulic.org.ar] > Sent: Tuesday, April 08, 2003 6:42 PM > To: docbook@lists.oasis-open.org > Subject: [docbook] external examples > > > > first of all, I'm not subscribed, so please cc me. > > then, to the problem. I have a boot that teaches html. I > put some examples > here and there. I want to keep the examples in separate > files, as I change them > constantly, due to editorial work. so, I put them in separate > files. then I > declare entities that reference those files, and use them in > the chapters at > will. > > *but*, as they're html files, I gotta either scape them, > or cdata them. > scaping them is hard, as I need them to make the screenshots. > I could preprocess > them to make the real html files, yes, but that's my last > resort. and the > solution to cdata then doesn't works, as I can't reference > entities there. > > the exact example would be: > > ... > <programlisting> <![cdata[ html file goes here ]]> </programlisting> > ... > > any suggestions? > > -- > La gelatina hecha con vodka pega mas que 'La Gotita' > --oyente anonimo del programa de radio "Dos tipos audaces" > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]