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

RE: Using a tree read with document() as a hash-table

Subject: RE: Using a tree read with document() as a hash-table
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 14 Jun 2000 10:54:44 +0100
document into hashtable
> My problem is that I need to look up a value in another 
> external XML file during XSLT processing, to include in the 
> generated output.
> 
> I can read in the external file with the following lines
> 
> <xsl:param name="packtypefile" select="packtype.xml" />
> <!-- Load the packtypes from the external file -->
> <xsl:variable name="packtypetree" 
> select="document(packtypefile)" saxon:trace="yes"/>

You want select="'packtype.xml'" on xsl:param
And select="document($packtypefile)" on xsl:variable
And saxon:trace on xsl:variable is ignored

> I have done a lot of trial-and-error, and have given up on 
> the following
> 
> 
>   <!-- First look up the packtype -->
>   <xsl:apply-templates 
> select="$packtypetree//ROW[packcode='GREEL']" mode="preview"/>
> 
> to get "into" the node-set of $packtypetree, but without 
> visible results. 

It's essentially OK. Possible reasons for no visible results:
- there is no ROW with this packcode
- there is no template that matches it in mode "preview"
- the template that matches this row produces no output.

Mike Kay


 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.