M
Mariusz Sieraczkiewicz
This is a source (Cocoon's SQLTransformer output):
/////////////////////////////////////////////////////////
<?xml version="1.0" encoding="UTF-8" ?>
<sql xmlns:sql="http://apache.org/cocoon/SQL/2.0">
<rowset xmlns="http://apache.org/cocoon/SQL/2.0">
<row>
<firmyid>100</firmyid>
<nazwafirmy>ghjghjjghjghj</nazwafirmy>
<datautworzenia>2003-06-23</datautworzenia>
<kto_zmienil>29</kto_zmienil>
</row>
</rowset>
</sql>
and xslt stylesheet
/////////////////////////////////////////////////////////
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:sql="http://apache.org/cocoon/SQL/2.0">
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<xslutput method="xml"/>
<xsl:template match="sql">
<normal>
<xsl:copy-of select="sql:rowset/sql:row/*" />
</normal>
</xsl:template>
</xsl:stylesheet>
/////////////////////////////////////////////////////////
But usingI'm getting very annoying output:
<?xml version="1.0" encoding="UTF-8" ?>
<normal xmlns:sql="http://apache.org/cocoon/SQL/2.0">
<firmyid xmlns="http://apache.org/cocoon/SQL/2.0">100</firmyid>
<nazwafirmy
xmlns="http://apache.org/cocoon/SQL/2.0">oiouioiuui</nazwafirmy>
<datautworzenia
xmlns="http://apache.org/cocoon/SQL/2.0">2003-06-23</datautworzenia>
<kto_zmienil
xmlns="http://apache.org/cocoon/SQL/2.0">29</kto_zmienil>
</normal>
How to change xslt so that there were noin output document - all the elements shouldn't have
any namespace declararion. Something like this:
<?xml version="1.0" encoding="UTF-8" ?>
<normal>
<firmyid>100</firmyid>
<nazwafirmy>oiouioiuui</nazwafirmy>
<datautworzenia>2003-06-23</datautworzenia>
<kto_zmienil>29</kto_zmienil>
</normal>
Regards, Mariusz Sieraczkiewicz
/////////////////////////////////////////////////////////
<?xml version="1.0" encoding="UTF-8" ?>
<sql xmlns:sql="http://apache.org/cocoon/SQL/2.0">
<rowset xmlns="http://apache.org/cocoon/SQL/2.0">
<row>
<firmyid>100</firmyid>
<nazwafirmy>ghjghjjghjghj</nazwafirmy>
<datautworzenia>2003-06-23</datautworzenia>
<kto_zmienil>29</kto_zmienil>
</row>
</rowset>
</sql>
and xslt stylesheet
/////////////////////////////////////////////////////////
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:sql="http://apache.org/cocoon/SQL/2.0">
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
<xslutput method="xml"/>
<xsl:template match="sql">
<normal>
<xsl:copy-of select="sql:rowset/sql:row/*" />
</normal>
</xsl:template>
</xsl:stylesheet>
/////////////////////////////////////////////////////////
But usingI'm getting very annoying output:
<?xml version="1.0" encoding="UTF-8" ?>
<normal xmlns:sql="http://apache.org/cocoon/SQL/2.0">
<firmyid xmlns="http://apache.org/cocoon/SQL/2.0">100</firmyid>
<nazwafirmy
xmlns="http://apache.org/cocoon/SQL/2.0">oiouioiuui</nazwafirmy>
<datautworzenia
xmlns="http://apache.org/cocoon/SQL/2.0">2003-06-23</datautworzenia>
<kto_zmienil
xmlns="http://apache.org/cocoon/SQL/2.0">29</kto_zmienil>
</normal>
How to change xslt so that there were noin output document - all the elements shouldn't have
any namespace declararion. Something like this:
<?xml version="1.0" encoding="UTF-8" ?>
<normal>
<firmyid>100</firmyid>
<nazwafirmy>oiouioiuui</nazwafirmy>
<datautworzenia>2003-06-23</datautworzenia>
<kto_zmienil>29</kto_zmienil>
</normal>
Regards, Mariusz Sieraczkiewicz