[OSM-newbies] XSLT question
Hugh Barnes
list.osm at hughbris.com
Wed Sep 16 13:27:57 BST 2009
On Wed, 16 Sep 2009 18:52:53 +0900 (KST)
"Andrew Errington" <a.errington at lancaster.ac.uk> wrote:
> Ok, well if it's no trouble then I got this (using xsltpr:
>
> XPath error : Undefined variable
> tag[@k='amenity' and @v=$amenity]
> ^
> compilation error: file test.xsl line 23 element template
> Failed to compile predicate
>
>
> The caret is under the last ] (if you have a monospaced font).
>
Are you setting the $amenity parameter correctly on the command line?
It seems to be complaining about not knowing what it is. Try outputting
its value before this line like:
<xsl:value-of select="$amenity" />
just to confirm this.
Cheers
More information about the newbies
mailing list