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

RE: naming conventions for modular XSLT

Subject: RE: naming conventions for modular XSLT
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 21 Nov 2003 22:18:17 -0000
xslt naming convention
XQuery insists on associating a namespace with the functions and
variables exported by each module. If you want to be disciplined, then I
don't think that's a bad discipline to follow. It's certainly more
sensible to use namespaces than to use naming conventions of your own
invention.

Michael Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Harold Putman
> Sent: 21 November 2003 19:51
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  naming conventions for modular XSLT
> 
> 
> Hi, 
> I am starting to break up my large XSLT into separate modules 
> using xsl:include. It seems like I should have a way to 
> indicate in my XSLT where the templates and variables come 
> from if they are not in the same file. Is there a convention 
> for doing this? 
> I am trying out using a dot in the names of things that come 
> from extern modules. That is: main.xsl includes util.xsl. 
> In util.xsl I name everything that I intend to "export" with 
> a name beginning with util. 
> 
> 
> 
> 
> Then in my main.xsl I have 
> 
> ... 
> 
> 
> 
> Has anyone else done things like this? Is there any downside 
> to doing it this way? 
> 
> Thanks, 
> 
> Harold Putman 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.