Subject: RE: [xsl] including string of value in xpath-path From: "Josh Canfield" <Josh.Canfield@xxxxxxxxxxxx> Date: Tue, 15 Jun 2004 10:40:33 -0700 |
By default XSL 1.0 doesn't support evaluating a string as xpath. You may be able to find an extension function for your processor. You should first check exslt for the most cross processor compatibility. http://www.google.com/search?hl=en&ie=UTF-8&q=xsl+evaluate+function Josh -----Original Message----- From: ma.siebeneicher@xxxxxx [mailto:ma.siebeneicher@xxxxxx] Sent: Tuesday, June 15, 2004 9:59 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] including string of value in xpath-path 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 --+------------------------------------------------------------------ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/ or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx> --+--
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] declare the charset by an, Josh Canfield | Thread | RE: [xsl] including string of value, Passin, Tom |
Re: Saxon + xalan - error, Angeshwar Deepak | Date | RE: [xsl] including string of value, Passin, Tom |
Month |