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

XSL Does not Transform Correctly

Subject: XSL Does not Transform Correctly
From: nthalank@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 6 Dec 2005 12:02:14 -0500
reportnet questions
David

Thanks very much for your help.

I have made great progress.

I have two more questions.

Q1) How do I insert white space between columns in the rendered output. I
was unsuccessful using the 'xsl:text' command with the built in XSL Parser
from XML Spy Professional Edition as well as the MSXML parser from IE 6.0.

Q2) I have two columns in the rendered output. One is a database column and
the other is a user friendly name of the database column. How do I insert a
white space or a hyphen.

Below is the XSL code:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:c="http://www.developer.cognos.com/schemas/bmt/32/3"
>
<xsl:template match="/">
<p>
<xsl:text> Database Column </xsl:text>
<xsl:text>                    </xsl:text>
<xsl:text>ReportNet Equivalent</xsl:text>
</p>
<xsl:for-each select="/c:project/c:namespace/c:querySubject/c:queryItem">

<p>
<xsl:value-of select="c:columnName"/>
<xsl:value-of select= "c:name" />
</p>

</xsl:for-each>
</xsl:template>

</xsl:stylesheet>

I attempted to insert 'xsl:text' command between the two 'xsl:value'
commands. However that screwed up the output. The column names were no
longer on the same row.

Regards

Naveen K Thalanki
Principal Software Engineer (IT Commercial Systems)
Boehringer Ingelheim Pharmaceuticals
Tel : 203 798  4630
Fax: 203 791 6601

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.