[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Avoiding namespace generation in elements
On 02/06/2011 18:29, Jacobus Reyneke wrote:
Good day, Using d-o-e has many disadvantages, but I hadn't come across this one before! There's absolutely no need for this clumsy workaround. Use xsl:namespace to create the "dynamic" namespaces, and all will be well. Michael Kay Saxonica <</xsl:value-of>xs:schema targetNamespace="<xsl:value-of select="$ns-map/namespaces/namespace[@pim-ns=$target-namespace and @version=$target-namespace-version]/@namespace-uri"></xsl:value-of>" xmlns:xs="http://www.w3.org/2001/XMLSchema" <xsl:for-each select="$distinct-namespaces"> <xsl:variable name="pim-ns" select="./text()" as="text()"></xsl:variable>xmlns:<xsl:value-of select="$ns-map/namespaces/namespace[@pim-ns=$pim-ns and @version=max($ns-map/namespaces/namespace[@pim-ns=$pim-ns]/@version)]/@prefix"></xsl:value-of>="<xsl:value-of select="$ns-map/namespaces/namespace[@pim-ns=$pim-ns and @version=max($ns-map/namespaces/namespace[@pim-ns=$pim-ns]/@version)]/@namespace-uri"></xsl:value-of>" </xsl:for-each> elementFormDefault="qualified"<xsl:value-of disable-output-escaping="yes">></xsl:value-of>
|
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
|