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

RE: Changing prefix

Subject: RE: Changing prefix
From: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx>
Date: Thu, 20 May 2004 10:22:00 +0100
prefix un
>  I have an app that uses MathML, and gathers some stats from 
> it.  But i ran into a problem when using mml tags embedded in 
> docbook,  as this app uses the "math" prefix, and in docbook 
> mathml tags  are prefixed with "mml".
> 
>  I am trying to do a stylesheet that copies all mathml 
> elements,  including attributes, data etc.. just changing the prefix.

I don't think this is possible using xslt 1.0, as this prefix is
considered non-important (although I've got a feeling there is a work
around, can't remember it for now)

>  Any idea ?

Use Saxon 7.9.x and the xsl:namespace element of xslt 2.0 as this allows
you to specify the prefix.

cheers
andrew

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.