|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: namespace is part of HTML tag???
thanks Ken.... it work.... the namespace doesn't copy to the output tag anymore after I add in exclude-result-prefixes="msxsl". Really appreciate your help. Thanks gain... *_* Have a nice day ! best regards, Hong Ling -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of G. Ken Holman Sent: Monday, June 03, 2002 11:52 AM To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: namespace is part of HTML tag??? At 2002-06-03 09:53 +0800, Goh Hong Ling wrote: ><?xml version="1.0"?> ><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:msxsl="urn:schemas-microsoft-com:xslt" > xmlns:user="http://www.w3.org/1999/XSL/Transform" > version="1.0"> > >I used the msxsl:script in my code to do certain XML to HTML transformation >thru XSL . But the weird thing is that when I viewSource my HTML page, I >always found <tr xmlns:msxsl="urn:schemas-microsoft-com:xslt">. This is coming from element nodes in your stylesheet tree that have namespace nodes attached for the msxsl: namespace. >How can I eliminate the extra note in the <TR>??? By pruning from the stylesheet tree those namespace nodes you do not wish to see in your result tree. >Any idea how to solve this problem?? In your document element, add the following attribute: exclude-result-prefixes="msxsl" Wherever you use this attribute (or xsl:exclude-result-prefixes= when you use it on a literal result element instead of an instruction), that element node in the stylesheet tree and all descendent element nodes will not have the named namespace nodes attached, thus they will not be copied to the result tree. I hope this helps. ................... Ken -- Upcoming: 3-days XSLT/XPath and/or 2-days XSLFO:Sep 30-Oct 4,2002 - : 3-days XML Information Modeling: Jul 31-Aug 2,2002 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995) ISBN 0-13-065196-6 Definitive XSLT and XPath ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-07-1 Practical Formatting Using XSLFO XSL/XML/DSSSL/SGML/OmniMark services, books(electronic, printed), articles, training(instructor-live,Internet-live,web/CD,licensed) Next public training: 2002-06-04,07,10,11,13,14,07-31, - 08-05,26,27,09-30,10-03 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list 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
|






