[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] spirit an xml element away and bring it back
hello.
we are trying (for a rountripping of xml documents between arbortext editor and adobe framemaker) to spirit mathml code away from xml arbortext editor documents (to open in adobe framemaker) and let the mathml code reappear again when returning to xml arbortext editor. the best would be to hide the mathml code in an attribute and let it also reappear again from that, but we could only make *one* way (hiding the code) and only in a *processing instruction* by this xslt fragment: ... <xsl:template match="FormulaEntity"> <FormulaEntity> <xsl:text disable-output-escaping="yes"><?MATH </xsl:text> <xsl:apply-templates/> <xsl:text disable-output-escaping="yes"> ?></xsl:text> </FormulaEntity> </xsl:template> ... i wonder if there is any way to to spirit an xml element with all descendants away, hiding it in an attribute and bring it back to stage after that. our xml input code would be like: <FormulaEntity> <m:math> <m:mrow> <m:mroot> <m:mrow> <m:mn>5</m:mn> </m:mrow> <m:mrow> <m:mn>2</m:mn> </m:mrow> </m:mroot> </m:mrow> </m:math> </FormulaEntity> we have to store the <m:math> element and the best would be to have after that something like: <FormulaEntity MathML="<m:math><m:mrow><m:mroot><m:mrow><m:m n>5</m:mn></m:mrow><m:mrow><m:mn>2</ m:mn></m:mrow></m:mroot></m:mrow></m:math>"> and bringing the code back to the input code. is there any solution in xslt for that? for tips many thanks in advance. frank
|
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
|