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

RE: Transforming tabular information to hierarchical

Subject: RE: Transforming tabular information to hierarchical
From: "Simon Shutter" <simon@xxxxxxxxxxx>
Date: Tue, 13 Feb 2007 11:00:18 -0800
RE:  Transforming tabular information to hierarchical
How could I do this in XSLT 1 if I had to?  Could I use .Net to create a
compiled transform that would work with Andrew's stylesheet?

Thanks


-----Original Message-----
From: Abel Braaksma [mailto:abel.online@xxxxxxxxx] 
Sent: February 13, 2007 10:26 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Transforming tabular information to hierarchical

Simon Shutter wrote:
> Hi Martin,
>
> So I substituted my file URL for the one Andrew used but I'm not sure 
> what to do next.  What (input xml file) am I transforming?  Can you 
> apply an XSL file without an input file?

Yes. In XSLT 2 you can. In XSLT 1, if you wanted to do that, the trick was
usually to apply the stylesheet itself as input. In this case, the
stylesheet does little when applied normally. Andrew made the initial
template to have the name "main" (could be any named template). A processor
must give you a way to set the "initial template", which is the name of this
template: "main".

With Saxon this is:
java -jar saxon8.jar -it main yourstylesheet.xslt

Because you use an external resource with unparsed-text() function, there is
no XML input in this case at all.

-- Abel

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.