So was anybody able to successfully use this? I don't this this in
language-modules anywhere. I would *really* like to split grammar.xml
for Ukrainian but I spent some time today and I could not make it
work.
I tried just a filename, file://, classpath:// then I googled a bit
and tried to define my own entity resolver, also defined my our url
handler for classpath: etc but hothing helped, most of the tries throw
an exception XMLEntityManager.setupCurrentEntity() :(
I must say I haven't tried absolute file paths as they are useless insdie jars

Thanks
Andriy

2013/7/19 Mike Unwalla <[email protected]>:
> Hi All,
>
> The method that uses an external (parsed) general entity works fine for me.
>
> The Stack Overflow example shows this text:
> <!ENTITY otherFile SYSTEM "otherFile.xml">
>
> To specify the location of otherFile.xml, use either the path from the LT
> installation directory or the full path. Example:
> <!ENTITY otherFile SYSTEM "org/languagetool/resource/en/yourfile.xml">
>
> To open disambiguation.xml and grammar.xml in a validating editor, possibly
> you must use the full path. For example, the Microsoft XML Notepad 2007
> validating editor requires the full path.
>
> Regards,
>
> Mike Unwalla
> Contact: www.techscribe.co.uk/techw/contact.htm
>
> -----Original Message-----
> From: Daniel Naber [mailto:[email protected]]
> Sent: 24 June 2013 18:22
> <snip>
>> I am new to LanguageTool, and I would like to know if it is possible
>> to include
>> (or xinclude) other files into the grammar.xml or disambiguation.xml
>> files, so
>> that it can be split into smaller parts that is easier to manage and
>> maintain.
>> I haven't found any related information on the webpage or the wiki.
>
> welcome to LanguageTool!
>
> XML can do this, as described here:
> http://stackoverflow.com/questions/5121052/can-we-import-xml-file-into-anoth
> er-xml-file
>
> When we last tried this for German we gave up as it only partially
> worked and broke some of our workflow. Unfortunately, I cannot find the
> details anymore. But your situation might be different, so you should
> give it a try.
>
>
>
>
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Languagetool-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/languagetool-devel

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Languagetool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to