Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » How to use Epsilon Generation Language to generate DocBook XML file
How to use Epsilon Generation Language to generate DocBook XML file [message #1709915] Thu, 01 October 2015 21:44 Go to next message
Xue Liu is currently offline Xue LiuFriend
Messages: 21
Registered: May 2014
Junior Member
Hello,

Now I am doing some work about using ETL to generate DocBook article XML file. My first step is generating the valid attribute information for the DocBook type "article". I use an original DocBook project file "docbook.xml" from DEP4E as a reference.

The current problems are:

1. How to set the "xml:lang="en" ?
2. How to set the version="5.0" following xmlns="http://docbook.org/ns/docbook" ?
3. How to set the "title" of the article ?

In the attachment, you can find a ETL project (de.itesys.epsilon.docbook.generation.rar) and a reference project from DEP4E (DocBookExample.rar).

Thank you.

Xue Liu
Re: How to use Epsilon Generation Language to generate DocBook XML file [message #1709975 is a reply to message #1709915] Fri, 02 October 2015 10:58 Go to previous message
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 599
Registered: January 2010
Location: Birmingham, UK
Senior Member

This seems to work fine:

article.version = '5.0';
article.title.add(new DocBook!TitleType);
article.lang = 'en';


I've attached the project (you were missing the xml.xsd and xlink.xsd files that were imported from docbook.xsd).

You may want to consult some of EMF's official docs regarding the XML Schema --> ECore mapping:

https://www.eclipse.org/modeling/emf/docs/overviews/XMLSchemaToEcoreMapping.pdf

Keep in mind that Epsilon can also produce XML files without an XML Schema:

http://www.eclipse.org/epsilon/doc/articles/plain-xml/

Previous Topic:[ETL] Is there support for multiple metamodels? (ecore)
Next Topic:Strategy for model comparison and transformation
Goto Forum:
  


Current Time: Mon Sep 23 14:48:06 GMT 2024

Powered by FUDForum. Page generated in 0.04084 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top