Hi, I have problem with namespaces and attributes.
I want to get this:
<grammar xmlns="http://www.w3.org/2001/06/grammar"
xmlns:sapi="htt p://schemas.microso ft.com/Speech/2002/06/SRGSExtensions"[color=blue]
>[/color]
I have the following XSLT:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:styleshe et version="1.0"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" omit-xml-declaration="ye s" />
<xsl:template match="/">
<xsl:element name="grammar">
<xsl:attribut e name="xmlns">ht tp://www.w3.org/2001/06/grammar</xsl:attribute>
<xsl:attribut e name="sapi"
namespace="xmln s">http://schemas.microso ft.com/Speech/2002/06/SRGSExtensions</xsl:attribute>
</xsl:element>
</xsl:template>
but I can't get what I want, it don't work. Can anyone help me out?
Thanks in advance.
Julio
I want to get this:
<grammar xmlns="http://www.w3.org/2001/06/grammar"
xmlns:sapi="htt p://schemas.microso ft.com/Speech/2002/06/SRGSExtensions"[color=blue]
>[/color]
I have the following XSLT:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:styleshe et version="1.0"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" omit-xml-declaration="ye s" />
<xsl:template match="/">
<xsl:element name="grammar">
<xsl:attribut e name="xmlns">ht tp://www.w3.org/2001/06/grammar</xsl:attribute>
<xsl:attribut e name="sapi"
namespace="xmln s">http://schemas.microso ft.com/Speech/2002/06/SRGSExtensions</xsl:attribute>
</xsl:element>
</xsl:template>
but I can't get what I want, it don't work. Can anyone help me out?
Thanks in advance.
Julio
Comment