[Home] [By Thread] [By Date] [Recent Entries]
At 2009-01-03 17:29 +0000, Arthur Maloney wrote:
Hello Xsl-list, By not asking for it as you are in your stylesheet. Other than this code works OK Using Xslt v 1.0 in Net Framework Transfoming Xml to build Google sitemap.xml At this point, your default namespace is as desired.
At this point, your default namespace is the empty URI, thus you are adding an element without a namespace URI to the result tree. Therefore, the processor is correctly adding the xmlns="" in order to preserve what you have asked for in your stylesheet.
And you are repeated asking for elements to be added to the tree that are not in any namespace. If you put your default namespace declaration at the top of your stylesheet, then all unprefixed literal result elements will be in your default namespace: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><xsl:template match="/">
<urlset>
...
<xsl:template match="row">
<url>
...I hope this helps. . . . . . . . . . . Ken -- Upcoming XSLT/XSL-FO, UBL and code list hands-on training classes: : Sydney, AU 2009-01/02; Brussels, BE 2009-03; Prague, CZ 2009-03 Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|

Cart



