[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] converting XML to XML problem
Subject: Re: [xsl] converting XML to XML problem From: Abhijit Junnare <mavlaabhi@xxxxxxxxx> Date: Wed, 12 Nov 2003 06:43:25 -0800 (PST) |
THanks much Wendell I got it perfect now. Will make the change. I guess you saved me from trouble down the road :) --- Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> wrote: > Abhi, > > It's not whitespace inside the &_amp; entity, it's > the whitespace between > the output ampersand (an actual ampersand, when you > have disabled output > escaping) and the string that is to be the name of > your newly constructed > entity reference, that will be a problem. > > Look at the code of your post this morning and > you'll see that there is > whitespace that will appear *after* your ampersand > but *before* the value > of the attribute representing the entity name: > > <xsl:text disable-output-escaping="yes"> > &_amp; > </xsl:text> > <xsl:value-of select="@entity-name"/> > > ... the whitespace after the &_amp; and before the > close </xsl:text> tag is > what will get you. > > Really all you have to do is to run the code you > sent to the list this a.m. > (which was much like above) exactly as given, and > then try to parse the > result. (This kind of fragility is one of several > reasons why we frown on > d-o-e-based approaches except as a last resort.) > > Cheers, > Wendell > > At 04:32 PM 11/11/2003, you wrote: > >Hi Wendell, > >Yes now I get what you were saying. But the white > >space is before > >"&" and not as "& amp;" so I do not see any > >reason why > > > ><xsl:text> &</xsl:text> should not work the > same > >way as > ><xsl:text>&</xsl:text>. > >The only thing that may happen is that there will > be > >an extra space in the output xml if I am correct. > >Help me understand if you think I did not catch > what > >you are trying to say. > >Thanks, > >Abhi > > > ====================================================================== > 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 > ====================================================================== > > > XSL-List info and archive: > http://www.mulberrytech.com/xsl/xsl-list > __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] converting XML to XML pro, Wendell Piez | Thread | Re: [xsl] converting XML to XML pro, J.Pietschmann |
RE: [xsl] Search engine, David . Pawson | Date | Re: [xsl] convert large array to se, David Everly |
Month |
Keywords