xsl-list
[Top] [All Lists]

RE: [xsl] Mapping via intermediate XML file problem

2008-04-01 07:36:40
I only need this part of stylesheet to substitute a few 
element names and copy the rest unchanged.
What should I do then to make the substitution code work on 
the element that are unmatche by the mapping file?

Something like this

<xsl:element name="{($maps[(_at_)old = local-name(current())]/@new, @old)[1]}">

The idiom (A,B)[1] means "A if it exists, otherwise B".

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>