[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: xml viewer?



On 2004-12-17 00:11:55 -0500, Matt Price wrote:
> hmm, how does that work?  run the xml file through a particular xsl
> stylesheet?

Something like

  xsltproc <xsl_file> <xml_file> | less

This could automatically be done via $LESSOPEN if you want.

The XSL file should be something that just copies the XML file,
possibly with some exceptions, e.g. for whitespace text nodes,
and with xsl:output specifying indentation.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA



Reply to: