[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: document scope difficulty (Was: decode( source, ... )
Steve Muench wrote: > > I get mon34 as the output using our Oracle XSLT > engine so I'm pretty sure the sum one is just a bug. It's not. XPath says that "A / by itself selects the root node of the document ***containing the context node.***" The solution is to have a top-level variable pointing to the root of the main document: <xsl:stylesheet> <xsl:variable name="main" select="/"/> and then use sum($main//amount) James XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|