| Subject: Re: [xsl] using document in xsl:key match... From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 10 May 2004 14:50:41 -0400 | 
I am trying to use xsl:key to index a set of elements from another document. When I try to do: <xsl:key match="document('ed.xml')/root/sup" use="@name"/> I get: XPath error : Invalid expression //document('ed.xml')/root/sup ^ compilation error: file tb.xml line 7 element key xsl:key : XPath pattern compilation failed '//document('ed.xml')/root/sup'
It appears that a // is being prepended to my XPath query, which is causing it to fail. Is this suppose to be a valid construct (using document in an xsl:key match term)? Or is this a bug in the library?
I hope that helps, Wendell
After additional reading of: http://www.w3.org/TR/xslt#NT-Pattern It appears this construct is not allowed. Is this correct?
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| RE: [xsl] using document in xsl:key, M. David Peterson | Thread | [xsl] evaluate() error variable has, davidpbrown | 
| Re: [xsl] alphabetic counters, Wendell Piez | Date | RE: [xsl] alphabetic counters, Andreas L. Delmelle | 
| Month |