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

RE: Make Hirachy from flat file

Subject: RE: Make Hirachy from flat file
From: Jarno.Elovirta@xxxxxxxxx
Date: Thu, 16 Oct 2003 10:18:22 +0300
hirachy
Hi,

> > Use <xsl:element> or LRE 
> > <http://localhost/tr/xslt/#literal-result-> element>.
> 
> Other than there is no XSLT reference installed local on my 
> computer, I will
> look into the LRE thing.

Sorry, again! I really need to either memorize IDs of the XSLT spec anchors, or get rid of the local spec copy. Sorry again. That should naturally be <http://www.w3.org/TR/xslt#literal-result-element>
 
> <xsl:element> is obviously, but I thought the use of 
> <xsl:copy> was needed
> in order to make the iteration over the nodes, or am I mistaken?

You are. xsl:copy just makes a copy of the current node, see <http://www.w3.org/TR/xslt#copying> (hah, got the link right :) For xsl:for-each and xsl:apply-templates are used for selecting nodes, i.e. processing them.

> 2) How to handle blank cells in the spreadsheet.
> 
> About 2, is because I use the ss:Cell[cell number]/ss:Data[1] 
> to pull out
> the data, but if the user only have filled out the cells 
> 1,2,4 and 5, then
> ss:Cell[4]/ss:Data[1], will actually give me the value of 
> cell number 5.

I don't remember what you data looked like, but even if the cell is blank, the empty element's still there, right? Or how does the export keep the table together, i.e. properly aligned?

Cheers,

Jarno - Karim: Live 2001 <http://hardnrg.com/music.php>

 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.