On Sun, 22 Aug 2004 22:28:37 +0200, Joren Crauwels
<joren(_dot_)crauwels(_at_)student(_dot_)tul(_dot_)edu> wrote:
Hi,
ok, this is the answer i came up with so far, it filters out strings and
also checks other attributes besides slect and test (i assume one you have
to use {function()} when u use it in other attributes then select or test)
If someone has a better idea, or a better solution, please let me know. U
are always welcome to give examples of xpath-queries that wil be left out by
my function. This is the function:
<xsl:template name="generateUsedXpathQueries">
<xsl:variable name="bla1" select="'joren'"/>
<xsl:for-each select="@*">
<xsl:choose>
<xsl:when test="name() = 'select'">
<xsl:variable name="quoteje">'</xsl:variable>
<xsl:if test="not(starts-with(normalize-space(.),
$quoteje)) and not(ends-with(normalize-space(.),$quoteje))">
<li><xsl:value-of select="."/></li>
</xsl:if>
</xsl:when>
Joren,
This doesnt appear to address the following case :
<xsl:variable name="someVar" select="concat('some
string',//an/xpath/expression)" />
And of course, in place of the "concat" you can have other
functions too. For example, substring-before / substring-after etc.
Regards,
Kenneth