wood burning stoves
The moose likes XML and Related Technologies and the fly likes XSLT file maintenability Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSLT file maintenability" Watch "XSLT file maintenability" New topic

XSLT file maintenability

Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995

I am working now on a project which implies lots and lots of xsl transformations. We have about 100-150 xslt files, and one of them are growing in length each day. In the last monthes I start wondering what will happen when the current developers will go away and we will have new colegues. How are they supposed to understand some XSLT of about 2000-3000 lines?

I start doing some XSLT refactoring and the feeling about this issue changed a little bit, but still i am asking myself if somebody discovered a more generic maintenability techinic.

10x in advance

blog - InfoQ.com
Zhongwu Lin

Joined: Mar 06, 2001
Posts: 11
How do you specify href in <xsl:include href="" />?

let's say I have two xsl files


and we want to include second.xsl in main.xsl

In main.xsl I do:

<xsl:include href="second.xsl" />
<xsl:include href="com/test/second.xsl" />

IN neither way the transformer see it.
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
It depends of the location of the file. Consider that the href attribute value must be a valid URL. For example <xsl:include href="file:./anotherXSL.xsl"/>.
I agree. Here's the link: http://aspose.com/file-tools
subject: XSLT file maintenability
It's not a secret anymore!