[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Self-analysing stylesheet

Subject: Re: Self-analysing stylesheet
From: Michael Ludwig <mlu@xxxxxxxxxxxxx>
Date: Tue, 23 Sep 2008 19:27:14 +0200
Re:  Self-analysing stylesheet
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?

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.