All my declared namespaces are showing up in my <br/>
Posted: Sat Feb 18, 2006 1:16 am
I'm using Saxon 8.1B and Oxygen v5 (I'll be upgrading this evening to v7)
When I translate a namespace aware XML file using my stylesheet, I get all the namespaces repeated in the <BR/> html tags. They also show up in other tags (like <p>)
Here's my XSL fragment so far..
Here's my output
Why would the namespaces be repeated within the <BR/> tag?
-: confused :-
When I translate a namespace aware XML file using my stylesheet, I get all the namespaces repeated in the <BR/> html tags. They also show up in other tags (like <p>)
Here's my XSL fragment so far..
Code: Select all
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet"
xpath-default-namespace="urn:schemas-microsoft-com:office:spreadsheet">
<!--
****************************************************
-->
<!-- Begin Output Processing -->
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/Workbook">
<xsl:apply-templates select="Worksheet"></xsl:apply-templates>
</xsl:template>
<!--
****************************************************
Template for element Worksheet
****************************************************
-->
<xsl:template match="Worksheet">
<br/><xsl:text> In the Template for Worksheet processing</xsl:text>
<xsl:apply-templates select="Table/Row"></xsl:apply-templates>
</xsl:template>
... more templates down here ...
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<br xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet"/> In the Template for Worksheet processing[In the Template for Row processing][Cell Index Value: 6][In the Template for Row processing][Cell Index Value: ][Data Value: Chapter 1][Cell Index Value: 5][Data Value: Y][Cell Index Value: ][Data Value: Describe this Chapter][In the Template for Row processing][Cell Index Value: 2][Data Value: Req 1][Cell Index Value: 5][Data Value: Y][Cell Index Value: ][Data Value: Describe Req 1 here][In the Template for Row processing][Cell Index Value: 2][Data Value: Req 2][Cell Index Value: 5][Data Value: Y][Cell Index Value: ][Data Value: Describe Req 2 here][In the Template for Row processing][Cell Index Value: 3][Data Value: Req 2.1][Cell Index Value: 5][Data Value: Y][Cell Index Value: ][Data Value: Describe Req 2.1 here][In the Template for Row processing][Cell Index Value: 2][Data Value: Req 3][Cell Index Value: 5][Data Value: Y][Cell Index Value: 6][In the Template for Row processing][Cell Index Value: 3][Data Value: Req 3.1][Cell Index Value: 5][Data Value: Y][Cell Index Value: 6][In the Template for Row processing][Cell Index Value: 3][Data Value: Req 3.2][Cell Index Value: 5][Data Value: N][Cell Index Value: 6][In the Template for Row processing][Cell Index Value: 3][Data Value: Req 3.3][Cell Index Value: 5][Data Value: N][Cell Index Value: 6][In the Template for Row processing][Cell Index Value: 4][Data Value: Req 3.3.1][Cell Index Value: ][Data Value: Y][Cell Index Value: 6][In the Template for Row processing][Cell Index Value: 4][Data Value: Req 3.3.2][Cell Index Value: ][Data Value: N][Cell Index Value: 6][In the Template for Row processing][Cell Index Value: 3][Data Value: Req 3.4][Cell Index Value: 5][Data Value: Y][Cell Index Value: 6][In the Template for Row processing][Cell Index Value: 4][Data Value: Req 3.4.1][Cell Index Value: ][Data Value: Y][Cell Index Value: 6][In the Template for Row processing][Cell Index Value: 2][Data Value: Req 4][Cell Index Value: 5][Data Value: Y][Cell Index Value: 6][In the Template for Row processing][Cell Index Value: 2][Data Value: Req 5][Cell Index Value: 5][Data Value: Y][Cell Index Value: 6]<br xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet"/> In the Template for Worksheet processing[In the Template for Row processing][Cell Index Value: 1]<br xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet"/> In the Template for Worksheet processing[In the Template for Row processing][Cell Index Value: 1]
-: confused :-