xsl-list
[Top] [All Lists]

Re: formatting xml output: inserting newlines between generated attributes

2003-09-11 08:26:50
ok,
thank you *very much* wendell, david and michael. your comments have been very helpful to me. I'm amazed that this forum is free. ;)

abie


From: David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] formatting xml output: inserting newlines between generated attributes
Date: Thu, 11 Sep 2003 09:56:02 +0100

> do you feel that vendors of 2.0 will still support
> node-set() usage?

I doubt it but if you wanted to have a 2.0 stylesheet that still sead
select="xx:node-set($x)"
rather than
select="$x"
then you could do so and use the xslt 2 facilities for function
definition to define xx:node-set as a no-op function.


> also, leaving aside compatibility issues, what do you think about
> constructing a tree within one xslt vs. having a 2-step transform?

If it's the whole document then it doesn't make a lot of difference, two
steps is probably a bit kinder on the system as it can junk the initial
input tree from memory  after the first step, but it is _very_
convenient to process small chunks of document into a variable and then
process them with a second pass in the same stylesheet, eg one pass to
normalise several input forms, another to sort and number the result,
...

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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


_________________________________________________________________
Express yourself with MSN Messenger 6.0 -- download now! http://www.msnmessenger-download.com/tracking/reach_general


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