Re: [NTG-context] XML as source (was: E-books and XML)

2014-08-28 Thread Mica Semrick
The best commercial XML editor is oxygenxml IMHO. If you need free, look at 
xmlmind.

-m

On August 27, 2014 7:03:06 AM PDT, Procházka Lukáš Ing. - Pontex s. r. o. 
l...@pontex.cz wrote:
Hello Thomas,

I'm just curious:

- Which editor(s) (including commercial one(s)) do you usually use to
create XML source for Ctx? (Under Windows?)

- XML input vs. .tex (.cld) source:

IMHO, when one needs to program parts of Ctx source, it's better to use
TeX source/language combined with Lua or CLD.

Or - is it possible to program anyhow in XML source (Lua)?

I have no practical experience with (manual) creation of XML input
files for Ctx (yes, of course, there are some .xml sources generated by
other programs).

So, I can imagine one prepares source for Ctx as XML when he creates
something belletristic-like;
when one needs to process many products of other programs, plus to add
comments, reports or so, something programmable is necessary;
so, IMHO, XML might be useful for the latter case providing a)
programming capabilities and b) good XML editor.

Best regards,

Lukas


On Tue, 26 Aug 2014 20:12:25 +0200, Thomas A. Schmitz
thomas.schm...@uni-bonn.de wrote:


 On 26 Aug 2014, at 20:04, Hans Hagen pra...@wxs.nl wrote:

 To chime in: xml input facilitates the separation of content and
display. There are many tools which will validate xml as you type. Your
context skills will not be lost - if you have invested years in
learning to code, you will still be able to do this in your environment
files. John's argument does not make sense to me.  If someone new to
context asked me, I think I would advise her or him to use xml input
which is more versatile and easier to proofread for a beginner. And if
one day in 20 years she decides she wants to use another tool for her
files, it’s much easier to convert xml.


-- 
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
If your question is of interest to others as well, please add an entry
to the Wiki!

maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] XML as source (was: E-books and XML)

2014-08-27 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello Thomas,

I'm just curious:

- Which editor(s) (including commercial one(s)) do you usually use to create 
XML source for Ctx? (Under Windows?)

- XML input vs. .tex (.cld) source:

IMHO, when one needs to program parts of Ctx source, it's better to use TeX 
source/language combined with Lua or CLD.

Or - is it possible to program anyhow in XML source (Lua)?

I have no practical experience with (manual) creation of XML input files for 
Ctx (yes, of course, there are some .xml sources generated by other programs).

So, I can imagine one prepares source for Ctx as XML when he creates something 
belletristic-like;
when one needs to process many products of other programs, plus to add 
comments, reports or so, something programmable is necessary;
so, IMHO, XML might be useful for the latter case providing a) programming 
capabilities and b) good XML editor.

Best regards,

Lukas


On Tue, 26 Aug 2014 20:12:25 +0200, Thomas A. Schmitz 
thomas.schm...@uni-bonn.de wrote:



On 26 Aug 2014, at 20:04, Hans Hagen pra...@wxs.nl wrote:

To chime in: xml input facilitates the separation of content and display. There 
are many tools which will validate xml as you type. Your context skills will 
not be lost - if you have invested years in learning to code, you will still be 
able to do this in your environment files. John's argument does not make sense 
to me.  If someone new to context asked me, I think I would advise her or him 
to use xml input which is more versatile and easier to proofread for a 
beginner. And if one day in 20 years she decides she wants to use another tool 
for her files, it’s much easier to convert xml.



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] XML as source (was: E-books and XML)

2014-08-27 Thread Jan Tosovsky
On 2014-08-27 Procházka Lukáš Ing. - Pontex s. r. o. wrote:

 Which editor(s) (including commercial one(s)) do you usually use to
 create XML source for Ctx? (Under Windows?)

This is IMO the best you can currently get:
http://www.oxygenxml.com/xml_author.html

 - XML input vs. .tex (.cld) source:
 
 IMHO, when one needs to program parts of Ctx source, it's better to use
 TeX source/language combined with Lua or CLD.
 
 Or - is it possible to program anyhow in XML source (Lua)?

Most natural way for XML processing is XSLT transformation (kind of functional 
programming language). 

It is advisable to choose one of standardized vocabulary (DocBook, DITA, TEI) 
what give you a set of out-of-the-box XSLT stylesheets for common output 
formats. And in some tools, e.g. Oxygen, you can get additional level of 
comfort (various schema related functionality boosting your productivity) over 
using your own XML structure.

In case of DocBook you can get even Context output using this XSLT set:
http://dblatex.sourceforge.net/ (there is a dbcontext part in the download 
section)

Actually, this is my way of using ConTeXt, but with various MKIV compatibility 
tweaks. From the same DocBook XML source I am producing epub and also WebHelp 
(set of HTML pages).
http://docbook.sourceforge.net/release/xsl/current/webhelp/docs/ch01.html

HTH, Jan

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___