List Info

Thread: Re: Problem with namespaces in XML-LibXML-1.63




Re: Problem with namespaces in XML-LibXML-1.63
country flaguser name
Germany
2007-08-18 07:05:39
* Wilt, Paul <Paul.Wiltil.proquest.com>
[2007-08-17 19:50]:
> Do you have a code sample for doing this transform?

    <xsl:template
match="text()|comment()|processing-instruction()"&
gt;
        <xsl:copy-of select="."/>
    </xsl:template>

    <xsl:template match="*">
        <xsl:element name="{local-name()}">
            <xsl:apply-templates select="*|node()"/>
        </xsl:element>
    </xsl:template>

    <xsl:template match="*">
        <xsl:attribute
name="{local-name()}">
            <xsl:value-of select="."/>
        </xsl:element>
    </xsl:template>

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/&g
t;
_______________________________________________
Perl-XML mailing list
Perl-XMLlistserv.ActiveState.com
To unsubscribe: http:/
/listserv.ActiveState.com/mailman/mysubs

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )