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

Re: stylesheet organisation

Subject: Re: stylesheet organisation
From: George Cristian Bina <george@xxxxxxxxxxxxx>
Date: Fri, 02 Sep 2011 17:30:53 +0300
Re:  stylesheet organisation
It is not only the validation that fails... if the tool will normally offer you editing help by looking into the stylesheets for defined templates, variables, functions, etc. then you will loose that as well.

oXygen supports this though validation scenarios where you can define the main (entry point) stylesheet to be used instead of the one you edit.

One possibility to overcome this (if there is no support in the tool) is to define the referred components at the top of the stylesheet with an empty value or generating an error message that there is no proper definition for that component and reply on the import precedence to bring in the actual definition from the importing stylesheets - but this may hide errors when the module is imported from another stylesheet that does not define all the components, or it will delay their detection until runtime.

Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 9/2/11 5:08 PM, Tom T wrote:

Ah yes, then I still get those error messages but just choose to ignore them, I don't find them useful in the debugging process anyway.


----------------------------------------
Date: Fri, 2 Sep 2011 14:55:48 +0100
From: andrew.j.welch@xxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  stylesheet organisation

They are imported once in each entry level stylesheet, this ensures they will only ever be imported once, - not sure what you mean by 'rely on tools to be aware of that'?

If you have 3 stylesheets, 'a', 'b' and 'c'.


If a imports both b and c, then you can refer to things in b from c,
however your editor would complain about the missing things unless it
knows about the entry point a.



--
Andrew Welch
http://andrewjwelch.com

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-2013 All Rights Reserved.