[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

copying mixed xml

Subject: copying mixed xml
From: Manolis Mavrikis <M.Mavrikis@xxxxxxxx>
Date: Thu, 08 Jan 2004 16:46:38 +0000
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.