XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Stephanie BoarmanSubject: Stylesheet questions
Author: Stephanie Boarman
Date: 03 Nov 2006 10:56 AM
I've downloaded the 2007 demo and I've been playing around with it. I am not a developer or programmer and I have two questions so please use easy to understand language :-) :

How do you create a stylesheet that uses more than one XML document at a time?

Is there a way to specify the XML file to the stylesheet without using the dialog?

Thanks,
stephanie

Posttop
Tony LavinioSubject: Stylesheet questions
Author: Tony Lavinio
Date: 03 Nov 2006 12:05 PM
Every XSLT program has a default document associated with it, hence
the dialog. The way this document is set, according to the standard,
is 'implementation defined'.

That being said, you can still cheat. You can press [Cancel] at the
initial dialog, and change the starting template to use another source
instead of saying <xsl:template match="/"> using the document()
function (which is the answer to your first question also).

However, unless you are using Saxon, which exposes a way to start at
an arbitrary named template, there is no way to RUN an XSLT stylesheet
which has no starting document, since the root of the initial document
is the event that fires off the processing.

If you are using Saxon 8.x, there is an option in the Scenarios
dialog that lets you set the starting template.

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.