sbbrown9924
Technical User
I have a web site that uses dynamic data from a proprietary xml-based content management system called concourse. I can find no documentation for it (its hosted free by a guy that's a friend of a friend of a friend).
Anyways, I extract data with mysql into layers and tables. These are not retaining white spaces, tabs, and line breaks. I've been to the wsc site but can't quite understand how to write the commands that will preserve white-spaces.
Can someone give me an example of how to do this that I might get an idea from? That would be most appreciated. Thanks.
--------------------------------------------
Below is an example of a sample page with all but one query stripped out of it. It is the <get-column id="description"> field I want to preserve white space with. This content management system stores all the <head> information into a file called template.xhtml is merged with the file below and the xml data to form a complete web page.
<?xml version="1.0" encoding="iso-8859-1"?>
<cqd database="xxxxxx" user="xxxxx" password="xxxxxx">
<body text="#666666">
<div id="DetailsText" style="position:absolute; left:185px; top:50px; width:240px; height:290px; z-index:42; overflow:visible" class="NavBar2">
<query id="DetailsText">
SELECT events2.event_id, events2.description
FROM events2
WHERE events2.event_id=926;
</query>
<row-results> <b>Details:</b><br/>
<get-column id="description"> </row-results>
</div>
<div id="tanbox" style="position:absolute; left:6px
top:10px; width:189px; height:430px; z-index:1">
<img src="../images/LoginBackground.gif" width="187"
height="430"/>
</div
<div id="bluebox" style="position:absolute; left:146px; top:40px; width:260px; height:415px; z-index:5">
<img src="../images/BackgroundShapes/BackgroundBox5.gif" width="260" height="395"/
</div>
<div id="yellowbox" style="position:absolute; left:366px; top:40px; width:222px; height:301px; z-index:4">
<img src="../images/BackgroundShapes/BackgroundBox3.gif" width="222" height="300"/>
</div>
<div id="imagebox1" align="left" style="position:absolute; left:420; top:270px; width:150px; height:120px; z-index:10">
<query id="Image">
SELECT events2.img_id1 FROM events2
WHERE events2.event_id=926;
</query>
<row-results>
<a href="../images/Photos/$(events2.img_id1)" target="_parent">
<img src="../images/Photos/$(events2.img_id1)" width="130" border="3"/>
</a>
</row-results </div>
</body>
</cqd>
Anyways, I extract data with mysql into layers and tables. These are not retaining white spaces, tabs, and line breaks. I've been to the wsc site but can't quite understand how to write the commands that will preserve white-spaces.
Can someone give me an example of how to do this that I might get an idea from? That would be most appreciated. Thanks.
--------------------------------------------
Below is an example of a sample page with all but one query stripped out of it. It is the <get-column id="description"> field I want to preserve white space with. This content management system stores all the <head> information into a file called template.xhtml is merged with the file below and the xml data to form a complete web page.
<?xml version="1.0" encoding="iso-8859-1"?>
<cqd database="xxxxxx" user="xxxxx" password="xxxxxx">
<body text="#666666">
<div id="DetailsText" style="position:absolute; left:185px; top:50px; width:240px; height:290px; z-index:42; overflow:visible" class="NavBar2">
<query id="DetailsText">
SELECT events2.event_id, events2.description
FROM events2
WHERE events2.event_id=926;
</query>
<row-results> <b>Details:</b><br/>
<get-column id="description"> </row-results>
</div>
<div id="tanbox" style="position:absolute; left:6px
top:10px; width:189px; height:430px; z-index:1">
<img src="../images/LoginBackground.gif" width="187"
height="430"/>
</div
<div id="bluebox" style="position:absolute; left:146px; top:40px; width:260px; height:415px; z-index:5">
<img src="../images/BackgroundShapes/BackgroundBox5.gif" width="260" height="395"/
</div>
<div id="yellowbox" style="position:absolute; left:366px; top:40px; width:222px; height:301px; z-index:4">
<img src="../images/BackgroundShapes/BackgroundBox3.gif" width="222" height="300"/>
</div>
<div id="imagebox1" align="left" style="position:absolute; left:420; top:270px; width:150px; height:120px; z-index:10">
<query id="Image">
SELECT events2.img_id1 FROM events2
WHERE events2.event_id=926;
</query>
<row-results>
<a href="../images/Photos/$(events2.img_id1)" target="_parent">
<img src="../images/Photos/$(events2.img_id1)" width="130" border="3"/>
</a>
</row-results </div>
</body>
</cqd>