[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: "Abie Hamaoui" <ahama5@xxxxxxxxxxx>
Date: Wed, 10 Sep 2003 22:01:01 +0000
xsl newlines
wendell,

(incidentally, I hope I'm reading my situation right as almost necessitating multiplicity. my problem is that I want to construct a tree and be able to use the collection devices of xpath on it, eg child::, count(), etc.. my understanding is that this feature is not in xsl 1.0 but it will be in 2.0 - is this right?)

I'm not sure what you mean by this, but if you're talking about XPath support without XSLT -- yes, that's available too. If you're talking about performing XPath queries over the results of your transform within XSLT, the answer is also yes -- it's even available within XSLT 1.0 if you use a node-set() extension function. In XSLT 2.0 it'll be transparent.

what I'd like to do is create a hierarchy of nodes. 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"/>
?


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.
do you think this need not be a concern


abie

_________________________________________________________________
Need more e-mail storage? Get 10MB with Hotmail Extra Storage. http://join.msn.com/?PAGE=features/es



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.