OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Strip docbook-5 to content only


On Mon, 24 Mar 2014 17:42:55 +0100
"Fritsch, Michael" <michael.fritsch@coremedia.com> wrote:

> Hi Dave,
> 
> I use a simple filter (see attachment) to remove all tags that I do
> not need, e.g. classname, methodname. However I replace these
> elements with a placeholder term because otherwise LanguageTool would
> recognize grammar errors.

I don't understand that? Are you just replacing element names?

  In principle, the line number is near the
> original position in the file. I think it gets a bit confused because
> of the namespace declarations in some elements which extend over
> several lines.  I do not resolve xi:includes but check each file on
> its own.

I am not bothered about line numbers, grepping on the xml from the
information provided by LT is good enough for me so far, and xIncludes
could be handled by the parser. 

Thanks Michael I'll take a look.
  I'm tempted to ask why you didn't use XSLT.... but I won't <grin/>

regards DaveP


> 
> Regards,
> Michael Fritsch
> 
> -----Original Message-----
> From: davep [mailto:davep@dpawson.co.uk] 
> Sent: Sonntag, 23. März 2014 12:33
> To: docbook-apps@lists.oasis-open.org
> Subject: [docbook-apps] Strip docbook-5 to content only
> 
> I'm playing with a grammar checker that isn't as yet XML friendly.
> One option is to strip all markup and pass through to the grammar
> checker having expanded any xincludes.
> 
> Issues:
>   1. Plain text output, Ideally block -> newline, inlines ->whitespace
>   separation.
>   2. Indexing is a special. Null template for <db:indexterm/>
>    3. Ditto (remove markup) for toc
> 
> Can anyone think of any other 'specials' that might need processing
> to obtain a simple text file ready for a spell checker?
> 
> And finally - has anyone done something similar please?
> 
> regards   
> 
> 



-- 

regards 

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]