xsl-list
[Top] [All Lists]

Re: [xsl] Self-analysing stylesheet

2008-09-23 13:27:52
G. Ken Holman schrieb:
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);

    xmlns:doc="http://www.CraneSoftwrights.com/ns/xslstyle";
    exclude-result-prefixes="doc"

(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à.

Michael Ludwig

--
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?

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>