Re: [xsl] regarding spaces

Subject: Re: [xsl] regarding spaces
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Thu, 14 Mar 2002 15:09:00 -0500
[Laura Jenkins]
>
> hi i have an xml file that has a an element with a value that looks like
> this
> <college id="21">
> <type>Music &amp;  Arts </type>
> </college>
>
>
> and i am required to generate another custom made xml that will have this
> value of type in the following way
>
> <univ.college>
>
> </univ.college>
>
> now whle i try to get the values from type
> after the transformation is complete, the browser throws error saying
>
> "Whitespace is not allowed at this location. Error processing resource"
>
> This is because there is a space between Music and &amp;and between &amp;
> and Dance.. I am not able to crack this problem. PLease suggest me some
way
> to get out of it.

It is not because there is whitespace where you say.  That is perfectly OK.
You need to show us the output you got from the transformation, and more
accurate information on where the error occurred, as well as saying how you
performed the transformation.  For example, is the browser complaining about
something is the transformed output, or aobut something in the stylesheet,
or something elsewhere in the source document? I can't tell.

No doubt the answer is simple, but you have not supplied enough information.

Tom P


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread