Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] Keys off of variable xml source [Thread Next] RE: [xsl] Keys off of variable xml sourceTo: Date: 4/1/2005 8:13:00 AM > 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/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
