Subject: [xsl] processing xml data with default namespace From: Achim Staebler <achim@xxxxxxxxxxxx> Date: Wed, 12 Jul 2006 21:04:11 +0200 |
<--- snip: test.xml ---> <?xml version="1.0" encoding="utf-8"?> <foo xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.patexpert.org/ont/metaont#"> <bar rdf:about="#id">argh</bar> </foo> <--- snip --->
<--- snip: test1.xsl ---> <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pat="http://www.patexpert.org/ont/metaont#" exclude-result-prefixes="pat" version="2.0">
<xsl:template match="pat:foo"> <xsl:element name="bar" namespace="http://www.patexpert.org/ont/metaont#"> </xsl:element> </xsl:template>
</xsl:stylesheet> <--- test1.xsl --->
<--- snip:output1 ---> <?xml version="1.0" encoding="utf-8"?> <bar xmlns="http://www.patexpert.org/ont/metaont#"/> <--- snip --->
<--- snip:test2.xsl ---> <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pat="http://www.patexpert.org/ont/metaont#" exclude-result-prefixes="pat" version="2.0">
<xsl:template match="pat:foo"> <pat:bar> </pat:bar> </xsl:template>
</xsl:stylesheet> <--- snip --->
<--- snip: output2 ---> <?xml version="1.0" encoding="utf-8"?> <pat:bar xmlns:pat="http://www.patexpert.org/ont/metaont#"/> <--- snip --->
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re: RSS 2.0 to RSS 1.0 XS, George Cristian Bina | Thread | Re: [xsl] processing xml data with , Wendell Piez |
Re: [xsl] Re: Keeping a running tot, Wendell Piez | Date | Re: [xsl] Keeping a running total? , Dimitre Novatchev |
Month |