[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Inserting xml:namespace and prefixed elements into
> I'm attempting to generate html output containing vml and following a > vml example, I'm trying to insert: > <html><head> > <xml:namespace prefix="v"/> > > > If you are generating html then XSLT won't use th eXML /> empty element > syntax, and won't allow an element name starting with XML (as teh XMl > REC reserves these) > > Similarly if you are using the xml output method then XSLT would use the > /> syntax but still can not allow an element called xml... > > Doesn't the microsoft weird-namespace-use-in-html system have an option > of a processing instruction syntax for namespaces? Ah! Thanks for the reply. It prompted me to discover two things: IE(6) is just as happy to see the <? ... ?> syntax and Adding: xmlns:v="urn:schemas-microsoft-com:vml" to the xslt declarations results in the <HTML> tag in the xslt being inserted as <HTML xmlns:v="urn:schemas-microsoft-com:vml">, obviating the need for the <xml:namespace....> element. And now it all works. Many thanks, Wayne XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|