|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] copying mixed xml
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








