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

extension & Charecter

Subject: extension & Charecter
From: "Laura Jenkins" <xsl_list@xxxxxxxxxxx>
Date: Fri, 15 Mar 2002 10:25:11 +0000
charecter
Hi My problem is an extension of Greggs problem

I am generating an xml file out of an xml file.
the xml file has the following format

<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>
<xsl:value-of select = "/college/type"/>
</univ.college>


this results in a output that looks like


<univ.college>
Music &  Arts
</univ.college>


BUT SINCE '&' IS NOT ACCEPTED IN THE XML FILE, THE BROWSER THROWS THE EXCEPTION "Whitespace is not allowed at this location. Error processing resource"



NOW IS THERE A WAY THAT I OUTPUT THE CONTENTS OF THE TYPE TAG AS IS TO PRODUCE EVEN IN THE OUT PUT &amp; instead of &.??


regards
laura

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx



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



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.