[Xpath-ng] problem with predicate!
Azam
azam_heydari at yahoo.com
Mon Dec 1 06:09:49 MST 2003
Hi all,
I have some problem with predicates:(, I have this XML :
<?xml version="1.0" encoding="UTF-8"?>
<xsp:page xmlns:xsp="http://apache.org/xsp" xmlns:xsp-request="http://apache.org/xsp/request/2.0">
<page><current>s</current>
<author nam="s"><name>someone</name></author>
</page> </xsp:page>
and this xsl :
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:template match="/">
<xsl:param name="current" select="page/current"/>
<html>
<head><title>
/**********<xsl:value-of select="page/author[@nam=$current]/name"/></title>******/
</xsl:template>
</xsl:stylesheet>
the problem is this : the part between /**** ****/ doesn't work, it must give me "someone" but it doesn't, it think this problem is because of predicate problem because if I write
<xsl:value-of name="$current"/> it gives me the correct answer which means "s".
please help me if you know anything about this...
thanks
Azam
---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fourthought.com/pipermail/xpath-ng/attachments/20031201/d387454c/attachment.html
More information about the Xpath-ng
mailing list