Årsarkiv: 2004

Part 8: Finishing touches

(The last in a series of blog posts about the tech behind lagen.nu. The other parts are here: first, second, third, fourth, fifth, sixth and seventh) URL design: Insired both by ”Cool URIs don’t change” and the general REST emphasis … Läs mer

Publicerat i programming | Etiketter , , , | Lämna en kommentar

Part 7: Regression testing

(A series of blog posts about the tech behind lagen.nu. Earlier parts are here: first, second, third, fourth, fifth and sixth) Like most developers that have been Test infected, I try to create regression tests whenever I can. A project … Läs mer

Publicerat i programming | Etiketter , , , | Lämna en kommentar

Part 6: Transforming with XSLT

Now, after having downloaded, analysed and XML-ified the lawtext, theres just one step left: Convert them to HTML. Enter XSLT. XSLT is a complex beast, and I find that it’s better to approach it as a programming language, albeit with … Läs mer

Publicerat i programming | Etiketter , , | Lämna en kommentar

Part 5: Finding and formatting inline law references

(Earlier posts: 1, 2, 3, 4) The second part of the convert-things-to-xml approach deals with finding inline references to other paragraphs in the law text. I’ve written about it in part in this blog post, but to recap: Swedish law … Läs mer

Publicerat i programming | Etiketter , , , | Lämna en kommentar

That’s a load off my {mind,chest,back}

We’re taking a break from our ”the tech behind lagen.nu series (1, 2, 3, 4), to bring you this information: For those of my readers that cannot read swedish, see, or discern text in really blurry pictures, the above images … Läs mer

Publicerat i studying | Etiketter , | 3 kommentar

Part 4: Converting stuff to XML

(If you missed part 1-3, they are here, here and here) If you look at a sample law text as they are presented in SFST, they are 100% plaintext. In order to convert them to semantically sensible XML, we must … Läs mer

Publicerat i programming | Etiketter , , , | Lämna en kommentar

Part 3: Understanding what was fetched

(Earlier posts in this series: here and here) There are a lot of ways to extract data from a HTML file. You can do simple string searching (by the way, why is the python documentation for basic string objects hidden … Läs mer

Publicerat i programming | Etiketter , , , | Lämna en kommentar

Part 2: Fetching stuff from the web

(A continuation of the series started in this post) Now, the first thing that needs to be done is to actually get the text of the laws from the web. Before that can be done, a list of available laws … Läs mer

Publicerat i programming | Etiketter , , , | Lämna en kommentar

Lagen.nu behind the scenes

Now that lagen.nu has been out for some time, it might be a good idea to write down what I’ve learned from it so far, in blog form. Much of the discussion will be centered around python, a language I’m … Läs mer

Publicerat i programming | Etiketter , , | Lämna en kommentar

Legal document standards, part 2

Rasmus blogs about open standards and open access for law texts, a topic of great interest to me as of lately (or ‘obsession’, apparently . We both agree that there are too little of that, and that the much-heralded open … Läs mer

Publicerat i law | Etiketter , , | Lämna en kommentar