Conversion of &
Having trouble installing Oxygen? Got a bug to report? Post it all here.
Conversion of &
Post by glaverick »
I have an XML file with a node like this:
<Commercial>  </Commercial>
When I load the file into Oxygen, it converts the node as follows:
<Commercial>  </Commercial>
This does not work, as I am trying to preserve whitespace when I apply an XSL transform to this file to build an HTML page.
What can I do to correct this?
<Commercial>  </Commercial>
When I load the file into Oxygen, it converts the node as follows:
<Commercial>  </Commercial>
This does not work, as I am trying to preserve whitespace when I apply an XSL transform to this file to build an HTML page.
What can I do to correct this?
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
-
- Posts: 1
- Joined: Fri Dec 05, 2003 4:37 pm
- Location: North Carolina
- Contact:
I apologize, I jumped to conclusions.
Actually, the conversion was being performed by MS SQL Server/VB.net. Luckily the XML is retrieved in VB.net as a string before I save it to a disk file. I was able to correct the problem by using the replace function:
strXML=Replace(strXML,"&","&")
Now my XSL transform works correctly

strXML=Replace(strXML,"&","&")
Now my XSL transform works correctly

Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service