Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: XML and Viewlink component XML and Viewlink componentTo: NULL Date: 8/5/2004 2:53:00 PM Hello, I'm trying to transform XML document into HTML using XSLT. But one of the tags should be transformed into viewlink tag. XSL doesn't allow me to insert <HTML xmlns:viewlink> instead of regular <HTML> tag into output. How can I go around it? Here's what I'm trying to do: <xsl:template match="/"> <HTML xmlns:viewlink> <---- Error on this line. Desc - "A name contained an invalid character. Error processing resource" <?IMPORT NAMESPACE="VIEWLINK" IMPLEMENTATION="bars.htc"?> <BODY> <xsl:apply-templates/> </BODY> </HTML> </xsl:template> <xsl:template match="dropdown"> <xsl:variable name="questionID" select="../@id"/> <xsl:variable name="bars" select="document('responses.xml')/root/response[@id=$loginName]/question[@id =$questionID]"/> <VIEWLINK:bars> <--- If I use just <HTML> error in this line: Desc - "Reference to undeclared namespace prefix: 'VIEWLINK'. Error processing resource". <script type="JavaScript"> var bars=new Array(); <xsl:for-each select="$bars/bar"> bars[{@id}]={@selected}; </xsl:for-each> </script> </VIEWLINK:bars> </xsl:template> Thanks in advance for your help. Ilya Volodin | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
