[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Controlling attributes and xsi:type
Nick Leaton wrote:
I'm trying to output some xml from and XSLT 2.0 stylesheet. I would use literal result elements as much as possible e.g. <calypso:cashflow xsi:type="calypso:CashflowSimple"> is possible in your stylesheet. Then simply put xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" on your xsl:stylesheet or xsl:transform element and all should work fine. If you really need to create/compute the attribute with xsl:attribute then use <xsl:attribute name="xsi:type" namespace="http://www.w3.org/2001/XMLSchema-instance" select="'calypso:CashflowSimpl'"/> -- Martin Honnen http://msmvps.com/blogs/martin_honnen/
|
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
|