|
Subject: [xsl] Long time no axes/document question From: "Richard Mitchell" <Richard.Mitchell@xxxxxxxxxxxxx> Date: Thu, 20 Jun 2002 15:43:48 +0100 |
Right then the scenario is that I want to find out if a preceding
sibling of mine has an item in another document with a attribute
comparison
between the two. What I have so far is...
<xsl:variable name="sitedefxsl" select="document('sitedef.xsl')"/>
<xsl:when test='not(preceding-sibling::menu[(not(@system) or
$sitedefxsl//xsl:when[xsl:call-template[@name="url_check" or
@name="article_system"] and
contains(@test,concat("'",translate(./@system,$UCASE,$lcase),"&apos
;"))]) and not(@hidden) and not(menu)])'>default.asp</xsl:when>
I hope this is understandable - the bit that is messing me up is the
./@system because the . context is in the
document not the element in the axes where I want it. I've done a
similar thing earlier in the same
style sheet for something not in an axes by preserving the conext in a
variable but I can't see there is way
to preserve a (possible) location in an axis.
My head hurts.
Richard Mitchell
Software Development Manager
http://www.vbnonline.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Param with namespace prob, Jeni Tennison | Thread | Re: [xsl] Long time no axes/documen, Jeni Tennison |
| Re: [xsl] Param with namespace prob, Jeni Tennison | Date | [xsl] count string-length without w, "Braumüller, Hans" |
| Month |