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

Re: formatting xml output: inserting newlines between

Subject: Re: formatting xml output: inserting newlines between generated attributes
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 10 Sep 2003 18:31:51 -0400
inserting newlines in attributes
Abie,

At 06:01 PM 9/10/2003, you wrote:

I just looked up the node-set() extension function for msxml3...
so if I have a variable:
<xsl:variable name="tree">
 <form name="form1">
   <control name="control1"/>
 </form>
 <form name="form2>
   <control name="control1"/>
   <control name="control2"/>
 </form>
</xsl:variable>

I can use all the normal retrieval and counting mechanisms that I use on the source document?
- like: <xsl:apply-templates select="node-set($tree)/form[@name='form1']/control"/>
?

Yup.


I have been reluctant to use extension functions b/c I didn't want to base my design on things that are vendor dependant and that could possibly not be there even for the same vendor in the next release.

Understood: this is a valid and well-founded concern (not to say "well-formed").


If you want to ply the absolutely straight and narrow, avoid it. In the case of node-set(), however, it is just about the commonest extension function out there (most processors have a version of it), so (given you have to mind your namespace bindings and all that) it's still quite portable. Also, its functionality will be built into XSLT/XPath 2.0, which also mitigates the problem of application-dependency over the longer term (not that there won't be adjustments to make).

Should you use it? That I cannot say. Is it a concern? Always. Tactical decisions must be informed by strategy, which will tell you what kinds of risks you can take.

Cheers,
Wendell



======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


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.