Re: Self-analysing stylesheet
XSLStyle is free to download and use. I think you'll find it a very complete solution to documenting fragmented XSLT stylesheets. Any suggestions for improvements are welcome, and of course you can go in and hack your own additional rules or remove rules you don't like.
This looks really useful - thanks!
In order to get you started after downloading XSLStyle, you need to do the following:
(1) Make XSLStyle available via HTTP, for example on your local machine. Some links may not work in IE when using filesystem paths.
(2) Make your stylesheet module collection available via HTTP.
(3) Edit your top stylesheet, that is the one at the top of the import tree, to include:
(a) the processing instruction for XSLStyle (DocBook, DITA, home-grown);
<?xml-stylesheet type="text/xsl" href="/dev/XSLStyle/xslstyle-docbook.xsl"?>
(b) the XSLStyle namespace declaration (maybe excluding it from the result);
(c) and at least one documentation element.
<doc:doc info="Blabla" filename="list.xsl" vocabulary='DocBook'> <doc:title>Moin</doc:title> <para>Moin, moin.</para> </doc:doc>
(4) Point IE to your modified stylesheet module. Voil`.
-- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail?
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format