Hi Dashamir,

> About the suggestion, maybe it is better to keep
> --code unmodified and to introduce another tag,
> e.g. --code-- which would wrap the content in 
> CDATA. What do you think?

I just had a look at "DocBook: The Definitive Guide" and you're probably right. 
There should not be an automatism to have a programlisting wrapped into a CDATA 
tag in any case because the docbook standard does allow for markup inside a 
program listing, which can be useful.

But then, why not keep it simple and introduce

--cdata
----

so it would be

--code
--cdata
your program listing here
----
----

That would also allow for something like:

--code
--cdata
some not so important code in the beginning
----
<emphasis>
--cdata
more code
----
</emphasis>
----

Or would nested blocks cause a problem for the current version of the parser?

WDYT?

Regards,
Torsten


-------- Original-Nachricht --------
Datum: Sat, 5 Aug 2006 03:43:04 -0700 (PDT)
Von: Dashamir Hoxha <[EMAIL PROTECTED]>
An: "Helping the users of DocBookWiki to install and use it." 
<[email protected]>
Betreff: Re: [doc-book-users] Editing Code fragments (CDATA sections should     
not be touched)

> --- Torsten Schlabach <[EMAIL PROTECTED]> wrote:
> > My suggestion would be:
> > 
> > - Automatically wrap the code in between --code and
> > ---- in a CDATA.
> > - Look at the escape logic.
> > 
> > I am happy to do that and submit a patch if
> > 
> > a) anyone (Dashamir?) agrees this is the way
> > b) someone might give me a hint what pieces of code
> > I would have to look at.
> > 
> > In other words: Where's the Text (Wiki) processor?
> 
> Torsten,
> 
> I am going to try and fix them, however you are
> welcome to have a look at it, in any case (for
> example you may come up with other suggestions
> about them).
> 
> The editing code is in the directory:
> templates/docbook/edit/content
> 
> and the Text (Wiki) processor is in:
> templates/docbook/edit/content/text_to_xml
> 
> About the suggestion, maybe it is better to keep
> --code unmodified and to introduce another tag,
> e.g. --code-- which would wrap the content in 
> CDATA. What do you think?
> 
> About the escape logic, it something that
> definitly needs to be fixed, I have noticed it
> as well.
> 
> Regards,
> Dashamir
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Doc-book-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/doc-book-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Doc-book-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/doc-book-users

Reply via email to