This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] 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 at grulic dot org dot ar]
> Sent: Tuesday, April 08, 2003 6:42 PM
> To: docbook at lists dot oasis-open dot 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 at lists dot oasis-open dot org
> For additional commands, e-mail: docbook-help at lists dot oasis-open dot org
> 
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]