Altova Mailing List Archives

Re: [xsl] More on my problem with namespaces

From: Martin Honnen <Martin.Honnen@---.-->
To: xsl-list@-----.------------.---
Date: 11/9/2010 4:28:00 PM
Nick Leaton wrote:
> Using Saxon, I get this error message going the second route.
> [Saxon-PE] Element type "calypso:value" must be followed by
> either attribute definitions, ">" or "/>"
> @see
> xslt as follows
> ===============
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet
>     xmlns:xsl=""
>     xmlns:calypso=""
>     xmlns:xsi=""
>     xmlns:ns3=""
>     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=""

You need to delimit the start tag with '>', that is all i.e.

                     <calypso:value xsi:type="ns3:string"
                         <xsl:value-of select="."/>

that way the error should be fixed. 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.


	Martin Honnen

XSL-List info and archive:
To unsubscribe, go to:
or e-mail: <mailto:xsl-list-unsubscribe@l...>


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.