mathstodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for maths people. We have LaTeX rendering in the web interface!

Server stats:

2.8K
active users

#xml

4 posts4 participants0 posts today

Vytvořil jsem novou #PHP knihovnu určenou k deserializaci #XML z STORMWARE s.r.o. #Pohoda do PHP Tříd.

Jakmile knihovnova stráví vstupní xml soubor z pohody vytvoří z něj objekt který obsahuje metody potřebné pro práci s daty. Například součet položek fakury ve zvýšené sazbě dph získáme voláním

```$invoice->getInvoiceSummary()->getHomeCurrency()->getPriceHighSum()```

A jako třešinka na dortu je možnost po změně hodnot v objektu tento zase vyexportovat (zeserializovat) jako XML

Knihovna vznikla pro účelu právě se rodícího nástroje "pohoda-realpad" o kterém zase někdy příště.

Zdrojové kódy jako obvykle jsou plně k dispozici na GitHubu

github.com/VitexSoftware/pohod

Stormware's Pohoda XML/PHP serialization. Contribute to VitexSoftware/pohodaser development by creating an account on GitHub.
GitHubGitHub - VitexSoftware/pohodaser: Stormware's Pohoda XML/PHP serializationStormware's Pohoda XML/PHP serialization. Contribute to VitexSoftware/pohodaser development by creating an account on GitHub.

Algunos errores en XML JATS en trabajos de revistas científicas ya publicados (VI): sobre IAs generativas para hacer JATS - plr blog:

En esta entrega comento un paper en el que se utiliza ChatGPT para hacer #XML #JATS. Al etiquetar referencias, muestran un ejemplo de un report y una web, y la genAI saca las referencias en JATS con <article-title> para sus nombres pero se ha de usar <source> en vez de <article-title>. No se comenta nada al respecto en el trabajo...

pedrolr.es/blog/algunos-errore

pedrolr.esAlgunos errores en XML JATS en trabajos de revistas científicas ya publicados (VI): sobre IAs generativas para hacer JATS - plr blog
More from lrp (PeterLib)

I have been doing #XML stuff this week, specifically #TEI. I know a lot of people don't really like #XSLT, but it reminded me that when you're working with something that's not just structured data but a stream of text where some or all of the markup is part of the flow then that hybrid imperative/declarative model works really well for representing the full range of transformations you might want to make.

Would be interested to know if there are good modern alternatives.

Quinta entrega de la serie de posts comentando posibles errores en XML JATS. En este caso, una revista que publica en versión 1.3 de la DTD y que etiqueta los capítulos de libro con <chapter-title> para su título. Pero en la DTD 1.3 se dice que ese elemento ya está obsoleto y que hay que usar <part-title>:

Algunos errores en #XML #JATS en trabajos de #revistas científicas ya publicados (V) - plr blog: pedrolr.es/blog/algunos-errore

Y aquí el working project: doi.org/10.5281/zenodo.15087792
#EdiciónCientífica

pedrolr.esAlgunos errores en XML JATS en trabajos de revistas científicas ya publicados (V) - plr blog
More from lrp (PeterLib)

Revisiting the idea of 'Shaped Data' using #dependent_types

The idea being that lots of standards (#RFCs) are encoded in #XML for good reason.

Surprise, surprise:

What if we assume: #XSD are #types and XML and #XPath are values typed by XSD.

We can encode that nicely using dependent types so that we can write well-typed queries over well-typed data:

```
query : {ty : Schema n a} -> Query ty -> Data ty -> Maybe (Result ty)
```

Still, there are more things that can be well-typed. For example, I am gearing up to look at getting something like this working:

```
parse : {ty : Schema n a}
-> (str : String)
-> Rule (Data ty)
```

📢 Releasing tei-rdfa (beta)

▶️ Python utility for extracting RDFa data from TEI-XML documents
▶️ Resolves native TEI namespace formatting (through <prefixDef>)

🌐 pypi.org/project/tei-rdfa/
🌐 github.com/timofruehwirth/tei_

We welcome beta testing, feedback & contribution via #GitHub.
Boosts will be very much appreciated.

@ACDHCH_OeAW @oeaw @fwf @TEIConsortium @w3c @hcayless

PyPItei-rdfaA Python utility for extracting RDFa data from TEI-XML documents.
#TEI#XML#RDFa

Does anyone happen to have a copy of:

Floyd, Michael. A Conversation with Charles F. Goldfarb. Web Techniques (Vol.3, Issue 11), pp.38–41, November, 1998

It used to be online, but has now disappeared, and the Internet Archive doesn’t have it either. I’d like to check a quote that I copied back then.

Continued thread

I hadn't heard of it before, but it turns out there's a style format called XSLT that allows the browser to translate an XML file into HTML with CSS styling for display purposes.

Since my feed is Atom rather than RSS, I had a bit of trouble, but this post was helpful:

andrewstiefel.com/style-atom-x

Andrew Stiefel · How to Style an Atom Feed with XSLT
More from Andrew Stiefel
#RSS#Atom#XML

I figured out how to get my RSS feed to be human-readable and nice-looking!

I'd been wanting to do this to give people who aren't familiar with RSS an easier on-ramp to the stuff I care about.

I figure if someone new to RSS clicks on the link and just gets raw XML, they might think something is “broken” and not stick around, but now there's something human-readable and with instructions on how to follow it in a reader.

reillyspitzfaden.com/feed.xml

#RSS#Atom#XML

Came up at work but definitely a question of general interest:

I feel like when looking at a line-by-line diff of an XML file, it's just...
really not super clear, even with highlighting and such. Is there any sort of graph-aware diff tool that might generate a visual graph and show the difference that way? So that rather than reviewing line by line, you can say "ah, a node has moved from being a child of this node to another", or "these two nodes have been merged into one".

I feel like it would be possible to gin something up in like, networkX or something, but if there's prior art...

#techPosting #XML #computerScienceTrees #graphs #diffs