Subject: XSL and processing From: Tomas Eriksson <ter@xxxxxxxxx> Date: Thu, 3 Sep 1998 08:06:13 +0100 |
Hello, I have a question regarding processing in XSL. I have the following document, <root> <pool> <doc identifier="node6"> <title>The node title</title> </doc> <doc identifier="node14"> <title>The node title</title> </doc> </pool> <relations> <rel> <ref nodeidentifier="node6"/> <rel> <rel> <ref nodeidentifier="node14"/> <rel> </relations> </root> I would like to process the relations - rel section as a tree (image) and after the tree node display the title of the references doc node. I have tried the following, <xsl:template match="root"> <xsl:for-each select="relations/rel/ref"> <IMG src="plus.bmp" style="cursor: hand;" align="top"></IMG> <SPAN> <xsl:process select="ancestor(root)/pool/doc[attribute(identifier)='{attribute(nodeidenti fier)}']/title"/> </SPAN> </xsl:for-each> </xsl:template> <xsl:template match="root/doc/title"> <xsl:process-children/> </xsl:template> I am only interested in the doc[identifier]/title matching the ref - nodeidentifier value. It seems like I am loosing the value of {attribute(nodeidentifier)} when I go into a new xsl:process instruction. Does anyone know how to process and match attribute values the way I want to do ? Is it possible with XSL ? Regards Tomas XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Who can have qualifiers in XSL?, Henry S. Thompson | Thread | Re: XSL and processing, James Clark |
RE: FW: XSL - Loss to braille style, Pawson, David | Date | Re: XSL and processing, James Clark |
Month |