Subject: RE: [xsl] mixed content nodes question From: "Mark Lundquist" <ml@xxxxxxxxxxxxxx> Date: Fri, 7 Jan 2005 12:02:55 -0800 |
> From: Michael Kay [mailto:mike@xxxxxxxxxxxx] > > My preferred way to do lookups is to make it table driven: > I _amost_ suggested that... :-) :-) > <xsl:variable name="table"> > <entry code="3" value="foo"/> > <entry code="4" value="bar"/> > </xsl:variable> > > <xsl:template match="dictionary"> > <xsl:value-of select="$table/entry[@code=current()/@lookup]/@value"/> > </xsl:template> > > Needs the xx:node-set() extension or the document("") cheat if using XSLT > 1.0. Why do you need the node-set() extension for that? ~ml
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] mixed content nodes quest, Michael Kay | Thread | RE: [xsl] mixed content nodes quest, Michael Kay |
[xsl] Diploma thesis --> XML to PDF, senetex | Date | RE: [xsl] mixed content nodes quest, Michael Kay |
Month |