Subject: Re: [xsl] getting Not well formed xslt output From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 10 Jul 2001 12:02:19 +0100 |
<xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template>
<xsl:template match="@DEST"> <xsl:copy> <xsl:value-of select="../@imtask"/> </xsl:copy> </xsl:template>
Good luck, Wendell
Hi Mike, I have one problem like this: my node is like this: <ACTION TYPE="accept" LABEL="Next" task="go" DEST="#password" >
For SAXparsing in JAVA I make it well-formed like this: <ACTION TYPE="accept" LABEL="Next" task="go" DEST="#password" imtask="20"></ACTION>
On This code if I apply XSLT I want output like this: <ACTION TYPE="accept" LABEL="Next" task="go" DEST="20" >(20 is value of imtask)
Now I am having a problem how will I construct this node with keeping all previous attributes as it is and changing value of dest attribute and not closing it.If I write a template for this how I will be adding exact no. of attributes and not closing it.
Please advice. Thanx in advance, -Yogesh
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] getting Not well formed xslt , Yogesh | Thread | RE: [xsl] getting Not well formed x, Michael Kay |
[xsl] Re: How to correctly apply Di, Dimitre Novatchev | Date | [xsl] Best approach to localizing X, Dylan Walsh |
Month |