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

RE: Root when the current node is part of Parameter Re

Subject: RE: Root when the current node is part of Parameter Result TreeFragement/Nodelist
From: "Colin Toal" <colin_toal@xxxxxxxxxxx>
Date: Tue, 09 Mar 2004 17:54:27 -0500
RE:  Root when the current node is part of Parameter Re
>
> The problem is that - within the context of the ParamColour matching
> template, the key object doesn't seem to be defined - in fact,

Hi,

The actual problem seems to be that your xsl:param is being defaulted to a
string type. Try setting the type to RTF explicitly like:


Actually - I'm using the 1.1/2.0 implementation of XSLT in SAXON 7.8 - it handles the node-set type parameters just fine without extensions. So far I'm extension function free - but using an 'unreleased' XSLT standard.



> even root of this context node ( i.e. <xsl:copy-of select="//" /> is only
the
> Parameter contents. This makes me very sad.


Yes, but in the context of the Object template it makes you happy (?) Does
it work in there?


I think you mis-understand me. The key is actually unavailable in the context of the child node of the $OtherExpr/ParamColour node. It's like it comes from a completely different source document (which, in a way I guess it does.) I've worked around it by passing the key member I'm interested in as a parameter when the $OtherExpr/ParamColour matching template is pushed - but this feels like a hack to me - might just be my lack of familiarity with XSLT.



Hope this helps!



It does - thank you for the reply - but I think we might be looking at two separate problems.


Thanks again,
Colin

_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN Premium http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines



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.