Please add back `nu.validator.htmlparser.tools`
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- java
- Ambito
- build-system, cli
Direzione di ricerca
Inizia ispezionando test-src/nu/validator/htmlparser/tools/ e i sei punti di ingresso indicati, quindi confronta il modo in cui il progetto crea le proprie release con il vecchio htmlparser-1.4.jar. Ripristina le applicazioni di esempio nell’artefatto di release e verifica che siano disponibili le conversioni HTML/XML da riga di comando e il comportamento d’uso descritti nella issue.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The original 1.4 distribution contained some example apps, that could be used from the command line. The author stated:
Sample Apps
The jar file contains sample
main()entry points:
nu.validator.htmlparser.tools.XSLT4HTML5
nu.validator.htmlparser.tools.XSLT4HTML5XOM
nu.validator.htmlparser.tools.HTML2XML
nu.validator.htmlparser.tools.XML2HTML
nu.validator.htmlparser.tools.XML2XML
nu.validator.htmlparser.tools.HTML2HTML
The first two are sample apps that demo the use of XSLT with HTML5. The first one can use SAX or DOM and requires the Xalan serializer. The second one uses XOM. Running without parameters dumps usage help.
java -cp htmlparser-1.4.jar nu.validator.htmlparser.tools.XSLT4HTML5 --template=sort-ul.xsl --input-html=test.html --output-html=out.html --mode=domHTML2XML converts HTML5 to XML 1.0 plus Namespaces. With no arguments, it reads from stdio and writes to stdout. With one parameter, it reads the named file and writes to stdout. With two parameters, the first is the input file name and the second is the output file name.
XML2HTML, HTML2HTML and XML2XML work analogously. The *2HTML versions produce bad output if the document tree is not serializable as HTML5. It is up to the user the make sure that it is.
The sourcecode is in test-src/nu/validator/htmlparser/tools/ but none of the releases I found on Maven Central has the classes built in. I do have an older JAR, which is also named htmlparser-1.4.jar on disk, from years ago, that had these classes and thus is usable from the CLI.
May I kindly ask you, to bring these back, so one can convert HTML into XHTML simply from the command line? Thank you!
- Lingua principale
- Java
- Stelle
- 65
- Fork
- 29
- Merge medio
- 11g 21h
- PR unite (30g)
- 3
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di validator/htmlparser
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
validator/htmlparser#98 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
validator/htmlparser#96 · 1 commento · 1 reazione ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
validator/htmlparser#95 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
validator/htmlparser#87 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
validator/htmlparser#79 ·
Tutte le issue di validator/htmlparser
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
checkstyle/test-configs#263 ·
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Cannot differ own consent and managed consents in My Consents view and detailed consent view. Aperta1.0.0-alpha2 Type/Improvement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
wso2/dpdp-accelerator#272 ·