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

Re: Dynamic Table Generation

Subject: Re: Dynamic Table Generation
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 10 Mar 2000 12:02:11 GMT
rtf table generation
> What I think I need to do is:
> - build each table row (of blank table cells) before
> ...Trouble is I don't know how:
> - to add text data to an element

That isn't the xslt way. You need to build the output tree as you go
along, you can't go back into elements and add new children (such as
text nodes).


> - to sample what the text value of the current element in XSL 

. will give you the  value of the current node, used as in

<xsl:if test="contains( . , 'foo')">

to test if the string foo appears in the text content of the current
node. but I see from your code snippet that you know this, so 
I don't understand your comment.

It would be much easier to suggest changes to your code if you'd
included a (small) input file and made a (small but complete)
stylesheet. 

David


 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.