Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Requirements Modeling Framework  » XHTML rendering(How to render XHTML with ProR or ReqIF Studio)
XHTML rendering [message #1782937] Mon, 05 March 2018 13:25 Go to next message
JB Feron is currently offline JB FeronFriend
Messages: 4
Registered: November 2013
Junior Member
Hello,

I don't understand how to render XHTML in ProR or ReqIF Studio.
I create an XHTML DataType T_ExternalLink that I map on an Attribute External Link. I finally create an associated column in the viewer.
If I copy/paste an example of XHTML code, it gets un incorrect formatting and is not rendered both on ProR and on ReqIF Studio.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <title>Title of document</title>
</head>

<body>
  some content
</body>

</html>


If i use a ReqIF Studio RTF Presentation to render the XHTML, it has no effect.

Could someone explain me how to render XHTML in ProR or ReqIF Studio or poin me to the correct resource? There is no information on the official documentation.
Thanks!
Re: XHTML rendering [message #1782960 is a reply to message #1782937] Mon, 05 March 2018 16:11 Go to previous messageGo to next message
Michael Jastram is currently offline Michael JastramFriend
Messages: 229
Registered: April 2010
Location: Düsseldorf, Germany
Senior Member
Hi JB,

ProR does not support XHTML rendering, only ReqIF Studio. This is briefly covered in the handbook here (but not very deep):

https://reqif.academy/library/books/handbook/?page=sect0008.html

If you try to edit a cell with an XHTML attribute, does the rich text editor pop up? If not, then you may be missing JavaFX, which is required for rich text.

Also, we now have a new editor (Extend) that does not rely on JavaFX, and has additional features:

https://reqif.academy/software/extend/

Good luck!
- Michael



Re: XHTML rendering [message #1782993 is a reply to message #1782960] Tue, 06 March 2018 09:03 Go to previous messageGo to next message
JB Feron is currently offline JB FeronFriend
Messages: 4
Registered: November 2013
Junior Member
Thanks for your answer.

Indeed, the editor doesn't pop up when I try to edit an XHTML attribute.
Does it depend on the kind of presentation selected?

FYI, I use the following java versions on Red Hat linux, which as far as I understood support Java FX :
$ java -version
openjdk version "1.8.0_161"
OpenJDK Runtime Environment (build 1.8.0_161-b14)
OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)
$ javac -version
javac 1.7.0_161


In the following documentation, it is explained that Quote:
The standard editor from ProR converts rich text to plain text.

http://download.eclipse.org/rmf/documentation/rmf-latex/main.pdf
By converting, it means consider rich text/xhtml as plain text without interpreting it?

Last question, how is managed XHTML attributes when exporting a specification in HTML in ProR? Is it supported and will it be rendered correctly ?

Have a good day!
Re: XHTML rendering [message #1783002 is a reply to message #1782993] Tue, 06 March 2018 11:13 Go to previous message
Michael Jastram is currently offline Michael JastramFriend
Messages: 229
Registered: April 2010
Location: Düsseldorf, Germany
Senior Member
Yup, that's the problem: openJDK does not include JavaFX. The easiest is to simply install Oracle JRE

> Last question, how is managed XHTML attributes when exporting a specification in HTML in ProR? Is it supported and will it be rendered correctly ?

Yes, it should render correctly. The HTML simply inlines the XHTML and makes sure images are accessible.

Best,
- Michael


Previous Topic:Manage .reqif in git for multiple user input
Next Topic:Widget has the wrong parent
Goto Forum:
  


Current Time: Tue Sep 25 12:54:33 GMT 2018

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

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

Back to the top