list4xt : Mailing list for the XT users community.
[list4xt] Re: XSLT with a source with namespaces
Subject: [list4xt] Re: XSLT with a source with namespaces
From: Mike Brown (mike@skew.org)
Date: 05/07/2000 - 22:29
> 1. For simplicity, if you know what you want,
> use literals.
> <element attribute="value"> .....
> (Also less typing)
>
> 2. when you need to work out the element name,
> use <xsl:element name="{xpath calc}">
>
> 3. When you know half of it
>
> use
> <element-name attribute-1="value">
> <xsl:attribute name="{calculate-value}">
> <xsl:value-of select="calculated value"/>
> </xsl:attribute>
> </element-name>
4. If exclude-result-prefixes seems like too much of a hack and you'd rather keep
namespace nodes in the stylesheet from being accidentally attached to copies of
literal result elements in the result tree, use <xsl:element>...
- Mike
____________________________________________________________________
Mike J. Brown, software engineer at My XML/XSL resources:
webb.net in Denver, Colorado, USA http://www.skew.org/xml/
--
Mailing list for the XT users community. (http://highriskmerchantaccount.co)
(mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)
Archive générée par hypermail 2b28 le 06/11/2001 - 11:46 CET
webmaster@4xt.org
|