Subject: RE: [xsl] variable match attribute From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Fri, 13 Jul 2001 12:13:49 +0100 |
> <xsl:template match="$pattern"> > <!-- do something --> > </xsl:template> > > I know, the match attribute is a pattern, where I can't use variables > but how can I solve the problem: > 'read element names from a document B and use them as template pattern > in document a' If the pattern is always a simple element name you can do <xsl:template match="*"> <xsl:choose> <xsl:when test="name()=$pattern"> etc. Otherwise, it might be best to think in terms of generating the stylesheet dynamically. Mike Kay Software AG XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] variable match attribute, Michael Schäfer | Thread | Re: [xsl] variable match attribute, David Carlisle |
RE: [xsl] saxon node-set variable c, Michael Kay | Date | RE: [xsl] Newbie XSL Advice, Michael Kay |
Month |