|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Argument filters
Hello the list. Right here's a little problem I have
at the moment I have a snippet of code...
<xsl:variable name="keys" select="document($keyfile)"/>
<xsl:variable name="current" select="."/>
<xsl:for-each select="$keys/keyfile/keygroup[id='Rating' or
id='NotRating']">
<xsl:value-of
select="keyitem[word=$current/publickeyword or
word=$current/adminkeyword or word=$current/group]/itemhtml"
disable-output-escaping="yes"/>
</xsl:for-each>
Which seems to work for my purposes but for the next step I need to accept a
list of
of strings to compare against id's of keygroup and only perform the matching
against
keyitem when I have a match against the id of keygroup. Does this make
sense?
Also is there any nicer way to structure the whole code as placing the
current context
into the variable $current doesn't seem very nice to me.
Thanks for any help.
Richard Mitchell
Software Developer
http://www.vbnonline.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








