This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: OT: ICFP 2001 (xsl solution?)


> but that's it from me:-)

hey, you have to backtranslate your <x1> ... <x9> tags into <1> ... <9>!

<xsl:template match="x1|x2|x3|x4|x5|x6|x7|x8|x9">
<xsl:text disable-output-escaping="yes">&lt;<xsl:value-of 
select="substring(name(),2)" />&gt;</xsl:text>
<xsl:apply-templates />
<xsl:text disable-output-escaping="yes">&lt;/<xsl:value-of 
select="substring(name(),2)" />&gt;</xsl:text>
</xsl:template>

or, alternatively, again by using sed ...
Oliver

/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@informatik.hu-berlin.de             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]