xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Keys off of variable xml source


Subject: RE: [xsl] Keys off of variable xml source
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 1 Apr 2005 09:12:49 +0100

> Is it legal to create a key off of an xml source stored as a variable?

No.

> So the key decleration might look like:
> 
> <xsl:key name="myKey" match="$external_xml_source//data" 
> use="some_element"/>
> 
> If not, is there a workaround?
> 

Yes, just use match="data", and ensure that the context node is
$external_xml_source at the time you call the key() function.

Michael Kay
http://www.saxonica.com/


Current Thread
Keywords
xml
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor