logoalt Hacker News

billconanyesterday at 4:48 PM2 repliesview on HN

no

<div class="abstract-container">

<div class="abstract">

<pre><code> abstract text ... </code></pre>

</div>

<div class="author-list">

<ol>

<li>author one</li>

<li>author two</li>

<ol>

</div>

should be just:

[abstract]

abstract text

[authors]

author one | email | affiliation

author two | email | affiliation


Replies

afavouryesterday at 4:59 PM

Sounds like XML and XSL would be a great fit here. Shame it’s being deprecated.

But you could still use HTML. Elements with a dash in are reserved for custom elements (that is, a new standardised element will never take that name) so you could do:

    <paper-author-list>
      <paper-author />
    </paper-author-list>
And it would be valid HTML. Then you’d style it with CSS, with

    paper-author {
      display: list-item;
    }
And so on.
show 2 replies
panziyesterday at 5:00 PM

There is <article> <section> <figure> <legend>, but yes, <abstract> and <authors> is missing as such. But there are meta tags for such things. Then there is RDF and Thing. Not quite the same, I know, but it's not completely useless.

show 1 reply