1

Topic: Document formation in LibreOffice by means of XSLT

Good afternoon.
In the core, we form documents MSOffice by means of XML and XSLT 2.0 (word, excel), clients started to pass to free analogs (LibreOffice).
Looked on the Internet of the description of syntax XSLT for LibreOffice - result not so.
Can at whom is working XSLT files which form the document in LibreOffice, for learning. While interests XSLT files for LibreOffice for analog Word, but also for analog Excel the same are useful.
In addition can stick where it is possible to esteem on this question (it is desirable in Russian, but also English approaches).
Thanks.
While I look at syntax saved in a format fodt and transferred in Altov files, tried to open simply it swears on Root.
Where it to register for LibreOffice, for Word was so:

<? xml version = "1.0" encoding = "UTF-8" standalone = "yes"?>
<xsl:stylesheet version = "2.0" xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" xmlns:xs = "http://www.w3.org/2001/XMLSchema" xmlns:fn = "http://www.w3.org/2005/xpath-functions">
<xsl:output method = "xml" version = "1.0" encoding = "UTF-8" indent = "yes"/>
<xsl:output method = "xml" version = "1.0" encoding = "UTF-8" indent = "yes" name = "Vasya"/>
<xsl:template match = "ROOT">
<xsl:processing-instruction name = "mso-application"> progid = "Word. Document" </xsl:processing-instruction>
<w:wordDocument xmlns:aml = "http://schemas.microsoft.com/aml/2001/core" xmlns:dt = "uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:ve = "http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:v = "urn:schemas-microsoft-com:vml" xmlns:w10 = "urn:schemas-microsoft-com:office:word" xmlns:w = "http://schemas.microsoft.com/office/word/2003/wordml" xmlns:wx = "http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:wsp = "http://schemas.microsoft.com/office/word/2003/wordml/sp2" xmlns:sl = "http://schemas.microsoft.com/schemaLibrary/2003/core" xmlns:ns0 = "http://www.w3.org/2005/xpath-functions" xmlns:ns1 = "http://www.w3.org/2001/XMLSchema" w:macrosPresent = "no" w:embeddedObjPresent = "no" w:ocxPresent = "no" xml:space = "preserve">
<w:ignoreSubtree w:val = "http://schemas.microsoft.com/office/word/2003/wordml/sp2"/>
<o:DocumentProperties>

For LibreOffice 5 it was generated so

<? xml version = "1.0" encoding = "UTF-8"?>
<office:document xmlns:office = "urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style = "urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text = "urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table = "urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw = "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo = "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink = "http://www.w3.org/1999/xlink" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns:meta = "urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number = "urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg = "urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart = "urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d = "urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math = "http://www.w3.org/1998/Math/MathML" xmlns:form = "urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script = "urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config = "urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo = "http://openoffice.org/2004/office" xmlns:ooow = "http://openoffice.org/2004/writer" xmlns:oooc = "http://openoffice.org/2004/calc" xmlns:dom = "http://www.w3.org/2001/xml-events" xmlns:xforms = "http://www.w3.org/2002/xforms" xmlns:xsd = "http://www.w3.org/2001/XMLSchema" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt = "http://openoffice.org/2005/report" xmlns:of = "urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml = "http://www.w3.org/1999/xhtml" xmlns:grddl = "http://www.w3.org/2003/g/data-view#" xmlns:officeooo = "http://openoffice.org/2009/office" xmlns:tableooo = "http://openoffice.org/2009/table" xmlns:drawooo = "http://openoffice.org/2010/draw" xmlns:calcext = "urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:loext = "urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:field = "urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:formx = "urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:css3t = "http://www.w3.org/TR/css3-text/" office:version = "1.2" office:mimetype =" application/vnd.oasis.opendocument.text ">
<office:meta>

2

Re: Document formation in LibreOffice by means of XSLT

for a long time for office did by reverse-engineering - the unpretentious document - a pig with formatting bases saved in xml, hollowed out superfluous, fastened title, iterators and ways to the data.... It turned out xslt. Worked.

3

Re: Document formation in LibreOffice by means of XSLT

Thanks all who answered I will look, understand.
And still who can prompts it is possible to cause another from one file XSLT, for example in a variable to write down , to cause other file XSLT which it  delivers in the necessary case. If it is possible with examples.

4

Re: Document formation in LibreOffice by means of XSLT

Alex-ZZZ wrote:

Thanks all who answered I will look, understand.
And still who can prompts it is possible to cause another from one file XSLT, for example in a variable to write down , to cause other file XSLT which it  delivers in the necessary case. If it is possible with examples.

https://msdn.microsoft.com/ru-ru/library/ms256465 (v=vs.120).aspx

5

Re: Document formation in LibreOffice by means of XSLT

Antonariy;
To it not document () it is necessary, and

<xsl:import href = "...."/>

he not to other document wants to address, and to other XSL-file