Subject: Re: [xsl] determining node position by the content of a text node From: "Joris Gillis" <roac@xxxxxxxxxx> Date: Mon, 12 Sep 2005 13:54:31 +0200 |
Find a text-node named "Kunde". Then call the dictionary and search for that word.After finding it, remember the position of that word, because the english text node for that German word is one element-node before.
<xsl:variable name="Germanword" select="document('dict.xml')//seg[text()=$trans]"/> <xsl:variable name="Englishword" select="$Germanword/preceding::seg[1]"/>
<xsl:variable name="Englishword"> <xsl:for-each select="document('dict.xml')"> <xsl:value-of select="key('term',concat('de-',$trans))/../wort[@xml:lang='en']"/> </xsl:for-each> </xsl:variable>
regards, -- Joris Gillis (http://users.telenet.be/root-jg/me.html) Laudeo W3C et dona ferens
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] determining node position by , Thomas Winkler | Thread | Re: [xsl] determining node position, David Carlisle |
[xsl] determining node position by , Thomas Winkler | Date | Re: [xsl] determining node position, David Carlisle |
Month |