[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Adding an element of a specific type
I tried something like this, but that does not seem to work: <xsl:template match="ns1:O"> <xsl:element name="ns1:Q"> <xsl:attribute name="xsi:type">ns1:Q_Type</xsl:attribute> <xsl:apply-templates select="ns1:C" > </xsl:element> </xsl:template> you could do that, or equivalently I <xsl:template match="ns1:O"> <ns1:Q" xsi:type="ns1:Q_Type"> <xsl:apply-templates select="ns1:C" > </ns1:Q> </xsl:template> and you need to make sure that the ns1 and xsl namespace prefixes are both declared (on your xsl:stylesheet element, usually) > (sorry, but I am not sure which processor I have, since it is embedded > in an existing application) you can ask it. <xsl:value-of select="system-property('xsl:vendor')"/. for example David
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|