mapping of Akoma Ntoso to HTML elements

230 views
Skip to first unread message

Ashok Hariharan

unread,
Sep 20, 2013, 9:36:40 AM9/20/13
to akomant...@googlegroups.com, legal...@lists.oasis-open.org
Is there a standard recommended "mapping" of Akoma Ntoso elements to HTML elements ? 

I can see the logical way to map things (blocks -> div, inlines -> span) , but is there a recommended method ? 

Ashok

Greg Kempe

unread,
Sep 20, 2013, 9:43:31 AM9/20/13
to Ashok Hariharan, legal...@lists.oasis-open.org, akomant...@googlegroups.com
Ashok,

I don't know if there is a recommendation per se. I initially tried to map AN elements to their logical HTML counterparts, such as <list> and <blockList> to <ol> or <ul> and blocks to <div> etc. I discovered quite quickly that the semantic differences are too great, AN encodes far more meaning than HTML does.

Instead, I map almost all AN elements to <span> elements with the AN tag name as a class attribute, for example <chapter> maps to <span class="an-chapter">. I then do all styling and layout using CSS and can choose when to display an element as inline or block (not all AN block elements should actually be displayed as block).

I sometimes combine a <num> and a <heading> tag into a single <h*> HTML tag to make it easier to style them together.

Greg
--
You received this message because you are subscribed to the Google Groups "akomantoso-xml" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akomantoso-xm...@googlegroups.com.
To post to this group, send email to akomant...@googlegroups.com.
Visit this group at http://groups.google.com/group/akomantoso-xml.
For more options, visit https://groups.google.com/groups/opt_out.

monica.palmirani

unread,
Sep 20, 2013, 9:56:26 AM9/20/13
to akomant...@googlegroups.com
Hi Ashok,

please find in attachment the XSLT that we have developed for the Italian Senate in order to transform an XML AKN 3.0 file in XHTML.
The main purpose was to have an XHTML usable by Scriba for producing ePub format.
I am happy if you could test it in order to improve the transformation for all the kind of AKN documents.

Yours,
Monica
--
You received this message because you are subscribed to the Google Groups "akomantoso-xml" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akomantoso-xm...@googlegroups.com.
To post to this group, send email to akomant...@googlegroups.com.
Visit this group at http://groups.google.com/group/akomantoso-xml.
For more options, visit https://groups.google.com/groups/opt_out.


-- 
===================================
Associate professor of Legal Informatics 
School of Law
Alma Mater Studiorum Università di Bologna 
C.I.R.S.F.I.D. http://www.cirsfid.unibo.it/ 
Palazzo Dal Monte Gaudenzi - Via Galliera, 3 
I - 40121 BOLOGNA (ITALY) 
Tel +39 051 277217 
Fax +39 051 260782 
E-mail  monica.p...@unibo.it 
====================================

Akn30ToXhtml_ita_senato.xsl
Reply all
Reply to author
Forward
0 new messages