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

RE: Can one <xsl:choose> <xsl:output>?

Subject: RE: Can one <xsl:choose> <xsl:output>?
From: Dan Diebolt <dandiebolt@xxxxxxxxx>
Date: Mon, 7 May 2001 20:26:00 -0700 (PDT)
pass paramater to xsl
xsl:output is a top-level element and does not have such
an attribute. In other words, you can't place xsl:output
as a child of anything except xsl:stylesheet. Moreover,
XSLT does not care what DTD or schema the incoming XML 
conforms to nor is one even required. You can place
a paramater (xsl:param) at the top of your stylesheet
and arrange to pass in some type of flag or paramater
to indicate what processing should be attempted:

<xsl:stylesheet>
 <xsl:param name="flag"/>
 <xsl:choose>
  <xsl:when test="$flag='ABChartData'">
   ...
  </xsl:when>
  <xsl:otherwise>
   ...
  </xsl:otherwise>
 </xsl:choose>
</xsl:stylesheet>

Within the body of the when and otherwise you can code the processing
that should be attempted on your XML. However, the XSLT never really
cares what the DTD or schema the XML may or may not conform to.
Hope this helps.

Regards,

Dan

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

 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.