Subject: Re: [xsl] More on my problem with namespaces From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Tue, 09 Nov 2010 17:27:31 +0100 |
Using Saxon, I get this error message going the second route.
[Saxon-PE 9.2.0.6] Element type "calypso:value" must be followed by either attribute definitions, ">" or "/>" @see http://www.saxonica.com/documentation/javadoc/net/sf/saxon/trans/SaxonErrorCode.html#SXXP0003
xslt as follows
=============== <?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" xmlns:ns3="http://www.w3.org/2001/XMLSchema" version="2.0">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/"> <bonds> <xsl:for-each select="//isin"> <bond> <calypso:secCode> <calypso:name>ISIN</calypso:name> <calypso:value xsi:type="ns3:string" xmlns:ns3="http://www.w3.org/2001/XMLSchema"
<calypso:value xsi:type="ns3:string" xmlns:ns3="http://www.w3.org/2001/XMLSchema"> <xsl:value-of select="."/> </calypso:value>
Martin Honnen http://msmvps.com/blogs/martin_honnen/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] More on my problem with n, Nick Leaton | Thread | Re: [xsl] More on my problem with n, Martin Honnen |
Re: [xsl] More on my problem with n, Nick Leaton | Date | Re: [xsl] More on my problem with n, Martin Honnen |
Month |