[Home] [By Thread] [By Date] [Recent Entries]
Lech,
Since you are using XSLT 2.0, you can fall back to the actual name in the same XPath you use to look up a new name: <xsl:element name="{($maps[@old = local-name(current())]/@new),local-name())[1]}"> This uses the idiom ($a, $b)[1] whereby the first item in $b is used when $a is empty. If you want to generate a warning message, this is done easily with a conditional: <xsl:if test="empty($maps[@old = local-name(current())]/@new)"> ... generate your message ... </xsl:if> (A stricter test would check if your mapped name were a valid Qname, just in case.) I hope this helps, Wendell At 09:41 AM 4/1/2008, you wrote: Hi. ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
|

Cart



