|
Subject: Function from-ancestors and parent element name. From: Stephane St-Denis <Stephane.St-Denis@xxxxxx> Date: Wed, 08 Sep 1999 11:41:22 -0400 |
Hi everybody!
I would like to know if it is possible to pass in parameter for the
function from-ancestors
a reference of a element.
This is my example :
<xsl:for-each select=".//name">
<div>
<xsl:attribute name="style">
<xsl:text>margin-left:</xsl:text>
'********* I would like to have a count of the
' ******** parent of the name element *****
<xsl:value-of select="count(from-ancestors(parent(.)))"/>
<xsl:text>em</xsl:text>
</xsl:attribute>
</xsl:for-each>
I have a error pattern match when i use this statement :
count(from-ancestors(parent(.))).
I have no choice to use in parameter "parent(.)" because i don't know
what is the name
of the parent element.
I would like to now if this statement is supported. If not, I replace
this by what???
Thanks !!!
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| XSL and FO, Bovone Stefano | Thread | Re: Function from-ancestors and par, G. Ken Holman |
| Re: MSXML and Encoding, David Carlisle | Date | RE: MSXML and Encoding, Julian Reschke |
| Month |