Subject: including string of value in xpath-path From: <ma.siebeneicher@xxxxxx> Date: Tue, 15 Jun 2004 18:59:11 +0200 |
hallo subscribers, i have some problems with an xpath expression. my target is to generate a xpath string including a value from a varible or parameter, evaluate(xpath) and getting some content from node. maybe it will clear after my xsl and xml snippets.. this is my xsl snippet which should combine the element sitemap and the variable $sitemap-collection-path with the title element by using the concat() function. <xsl:parameter name="sitemap-collection-path" select="galley"/> <xsl:template name="build-title"> <xsl:value-of select="concat('sitemap/', $sitemap-collection-path, '/title')"/> </xsl:template> but this template generates just a string -> "sitemap/gallery/title" but didnt evaluate it as an xpath-path. how can i force this, maybe with an other function? and the xml snippet looks like this... <sitemap> <gallery> <title>Gallery</title> </gallery> <stories> <title>Stories</title> </stories> <!-- and so on ... --> </sitemap> thanks for you helping me out! markus siebeneicer
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] More mixed XML & HTML, Passin, Tom | Thread | RE: [xsl] declare the charset by an, Josh Canfield |
RE: [xsl] More mixed XML & HTML, Passin, Tom | Date | RE: [xsl] declare the charset by an, Josh Canfield |
Month |