xsl-list
[Top] [All Lists]

copying mixed xml

2004-01-08 09:46:38
Hi ...   I need some help again:

   can I parse the following

<m:math xmlns="http://www.w3.org/1998/Math/MathML"; display="block">
<mn><my:value name="z"/></mn></m:math>

copying the mathml elements and apply templates to the my: elements ?

Actually, I may be doing something completely wrong but I can't figure another way to do that. I mean my xml file has already value tags elsewhere with no-namespace but I figured that I can define "my" namespace and write an explicit template to match value

<xsl:template match="my:value">
  .. do things ...
</xsl:template>

so I have the usual copy

<xsl:template match="m:*">
 <xsl:element name="{name(.)}">
   <xsl:copy-of select="@*"/>
   <xsl:apply-templates/>
 </xsl:element>
</xsl:template>

and thought that it would work. It obviously doesn't so I would appreciate any help

Thanks,

Manolis



XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>