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


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

Re: Re: Concrete proposal for #480954: Extend textobjecttoinsertexternal files


Yann Dirson wrote:

> > type - it is used in several markup languages to hold MIME type of data.
> > However MIME approach is not currently  used in DocBook, so this change
> > would be quite inconsistent with a rest of DocBook.
> 
> MIME denomination is "content-type", not "type".  But IMHO MIME

Look at HTML spec. or to specification for attaching stylesheet to XML
document. All of these languages are using type attribute for holding
MIME type. E.g.:

<script type="text/javascript">
window.status = "Hi!";
</script>

<?xml-stylesheet href="x.css" type="text/css"?>

> content-type are not generic enough.  We should be able to have
> control to a level like image/bitmap/png/rle-compressed, which the
> 2-level of MIME can't express.  At least it would be useful to a
> stylesheet to have the "image/bitmap/png" part.

Tell me for what this information may be useful. I talked about some
attribute which can store type of data in included external text file.
Stylesheet can (at least in theory) use this information for syntaxing
highlighting of source. 
 
> > language - it is used in classsynopsis for same purpose.
> 
> This has the idea of a programming language.  Such a notion may not
> exist - think of a plain-text file, or the textual representation of
> an equation, etc.

plain-text file - no language attribute or language="plain" or
language="text" 
equation - no language attribute or language="tex" or language="maple"
or language="matlab"

In many cases this attribute will be ignored because stylesheet won't be
able to provide some special processing. But if you specify that
included file is for example Java source and there will be appropriate
extension for stylesheet and you turn this extension on, stylesheet can
colorify source code. I'm preparing tons of training material and books
with a lots of code examples. Source code examples are easier to read
when are colorized. Unfortunately I hadn't time to write such extension
yet. 

				Jirka

-- 
-----------------------------------------------------------------
  Jirka Kosek  	                     
  e-mail: jirka@kosek.cz
  http://www.kosek.cz

----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>


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