|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] exclude result prefixes doesn't stop prefix from showi
I have a stylesheet that copies an xml document with a default namespace
while it also is adding some content to it:
*The stylesheet* <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns="http://www.icpsr.umich.edu/DDI" xmlns:ddi="http://www.icpsr.umich.edu/DDI" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="ddi" > <xsl:template match="@* | *"> <xsl:copy> <xsl:apply-templates select="* | @* | text()"/> </xsl:copy> </xsl:template> <xsl:template match="ddi:codeBook"> <xsl:copy> <xsl:apply-templates select="@*"/> <docDscr> <citation> <titlStmt> <titl> <xsl:value-of select="ddi:stdyDscr/ddi:citation/ddi:titlStmt/ddi:titl"/> </titl> </titlStmt> </citation> </docDscr> <xsl:apply-templates select="*"/> </xsl:copy> </xsl:template> </xsl:stylesheet> *The xml document* <?xml version="1.0" encoding="utf-8"?> <codeBook xmlns="http://www.icpsr.umich.edu/DDI" > <stdyDscr> .... *the resulting xml document*
My problem is that I'm getting an extra xmlns:ddi="http://www.icpsr.umich.edu/DDI" in the docDscr element even though I'm suppressing it in the excludes. Is there any way I can stop this from happening? -Mark Diggory Harvard MIT Data Center 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
|

Cart








