Subject: Re: [xsl] More on my problem with namespaces From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Tue, 09 Nov 2010 17:37:59 +0100 |
I am not sure you will achieve your aim of having the namespace declared on each calypso:value element but fix the other problem first.
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:calypso="http://www.calypso.com/xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0">
<xsl:template match="/"> <bonds> <xsl:for-each select="//isin"> <bond> <calypso:secCode> <calypso:name>ISIN</calypso:name> <calypso:value xmlns:ns3="http://www.w3.org/2001/XMLSchema" xsi:type="ns3:string"> <xsl:value-of select="."/> </calypso:value> </calypso:secCode> </bond> </xsl:for-each> </bonds> </xsl:template> </xsl:stylesheet>
Martin Honnen http://msmvps.com/blogs/martin_honnen/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] More on my problem with n, Martin Honnen | Thread | Re: [xsl] More on my problem with n, Andriy Gerasika |
Re: [xsl] More on my problem with n, Martin Honnen | Date | Re: [xsl] Generating XSD Schema fil, Wendell Piez |
Month |