OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Tests Framework for DocBook Stylesheets & Customizations?


On Thu, 16 Oct 2014 10:56:11 +0200
Thomas Schraitle <tom_schr@web.de> wrote:

> Hi,
> 
> when developing customizations for the DocBook stylesheets I have
> always the feeling I forget something important and work without any
> "safey net". ;)
> As such, it would be great to have a "test framework" which could
> automatically check the transformation results with the expected
> behaviour. 
> 
> I know of XSpec from Jeni Tennison which goes in this direction.
> However, as far as I know, this is for XSLT 2, not XSLT 1. It's used
> for developing and testing the upcoming XSLT 2 DocBook stylesheets.
> 
> I'm not sure how easily could this be adapted to our current XSLT 1
> base. Are there other (better?) solutions?
> 
> How do *you* develop and test your stylesheets? Has anybody used such
> frameworks? Any help is greatly appreciated. :)

xspec is for the general case. Question: Is docbook sufficiently 'firm'
to allow a specific solution? I.e. for any given input at the document
level, we should be able to specify the 'required' / expected output?
   That would allow a diff of two files, albeit an XML diff
   (deep-equals?) which would make for easier testing of the (x)html
   output. 
For fo, would the xsl-fo be sufficient? I'd guess so. Hence a similar
solution would be adequate. 

Just my 2cents worth.

regards


-- 

regards 

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]