[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Adding an element of a specific type

Subject: Re: Adding an element of a specific type
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 18 Oct 2006 15:23:24 +0100
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.