Hi All,

i need to transform a big source xml into target xml . My source xml comes
with the namespace prefix and my xsl doesnt contain any prefixes for xpath.

its very difficult to change all the xpath's at run time for me .

i have two options
1) First change the source xml to another xml file using 

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:template match="*">
  <xsl:element name="{local-name()}">
    <xsl:copy-of select="@*"/>
    <xsl:apply-templates/>
  </xsl:element>
</xsl:template>
</xsl:stylesheet>

this template .This will remove all the prefix bindings .
Now apply my original style sheet .I Will get the target xml.
Is this cause me performace hit ? 
Is it better to do like this or Is it better to have local-name() in the
stylesheet itself so that there is no additinal transformation required .
But if i use local-name() for all the xpath's i heard that processing time
will take more time ?
which one is better?

can any one guild me as i need this immediately.

Thanks & Regards,
SASI.a
-- 
View this message in context: 
http://www.nabble.com/Performance-Issue-tf3527549.html#a9843176
Sent from the Xalan - J - Users mailing list archive at Nabble.com.

Reply via email to