Pregunta

I successfully installed W3C css-validator.jar locally as described here:

How can I validate CSS on internal web pages?

Now I'm looking for some documentation about how to use it.

At the moment I'm doing something like this:

java -jar css-validator.jar --output=soap12 file:source.css > result.xml

I'd like to accomplish the following:

  • Output in a different format, e.g. XML (I guess that I can simply do --output xml for this)
  • Input a string directly without a file, e.g. string:"body { color: red; }"
  • Output the result directly without a file (so not like > result.xml) so I can do something like RESULT = java -jar css-validator.jar...

Any help on this is highly appreciated.

¿Fue útil?

Solución

I didn't find a lot of information about this, but at least here are some configuration parameters:

http://jigsaw.w3.org/css-validator/manual.html

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top