473,396 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

name space style sheet transform question

Hi, I am confused here as I am just trying to convert the following XML
file and trying to create a sample xsl to recognize even one of the
nodes does not seem to be working here... Could this be a name space
issue? I tried adding the rep namespace and setting it equal to the
xmlns for xsl but this did not work either... any ideas on how to get
my style sheet to recognize this xml file? Thanks in advance for your
help with this it is appreciated.

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
<xsl:for-each select="//amountAtDate">
<xsl:value-of select="text()"/>
</xsl:for-each>
</xsl:template>

</xsl:stylesheet>
xml document below ( forget the - signs these are from the browser)

<?xml version="1.0" encoding="UTF-8" ?>
- <rep:FrontPage xmlns:rep="http://localhost:7001/reporting">
<rep:dateGenerated q="1">Fri Apr 1 14:49:29 2005</rep:dateGenerated>
<rep:dateGeneratedTimeZone q="1">Eastern Standard Time
(US/Eastern)</rep:dateGeneratedTimeZone>
- <rep:client>
<rep:client_id q="0">6237</rep:client_id>
<rep:client q="1">Citadel Credit Trading Ltd.</rep:client>
<rep:clientShort q="1">Citadel Credit Trading</rep:clientShort>
</rep:client>
<rep:date q="1">2005-03-31-05:00</rep:date>
<rep:previousDate q="1">2005-03-30-05:00</rep:previousDate>
- <rep:frontPageSection>
<rep:sectionName q="1">GLOBAL MARGIN ROLL-UP (USD)</rep:sectionName>
- <rep:sectionLine>
<rep:lineName q="1">MARGIN EQUITY</rep:lineName>
<rep:amountAtDate q="0">11006732.908899993</rep:amountAtDate>
<rep:amountAtPreviousDate
q="0">-539473.0115977892</rep:amountAtPreviousDate>
</rep:sectionLine>
- <rep:sectionLine>
<rep:lineName q="1">HOUSE REQUIREMENTS</rep:lineName>
<rep:amountAtDate q="0">7941634.67709</rep:amountAtDate>
<rep:amountAtPreviousDate q="0">0</rep:amountAtPreviousDate>
</rep:sectionLine>
- <rep:sectionLine>
<rep:lineName q="1">HOUSE MARGIN EXCESS/DEFICIT</rep:lineName>
<rep:amountAtDate q="0">3065098.23181004</rep:amountAtDate>
<rep:amountAtPreviousDate
q="0">-539473.011597789</rep:amountAtPreviousDate>
</rep:sectionLine>
- <rep:sectionLine>
<rep:lineName q="1">CASH AVAILABLE</rep:lineName>
<rep:amountAtDate q="0">3065098.23181004</rep:amountAtDate>
<rep:amountAtPreviousDate
q="0">-539473.011597789</rep:amountAtPreviousDate>
</rep:sectionLine>
</rep:frontPageSection>
- <rep:frontPageSection>
<rep:sectionName q="1">US COMBINED MARGIN PB</rep:sectionName>
- <rep:sectionLine>
<rep:lineName q="1">LONG MARKET VALUE</rep:lineName>
<rep:amountAtDate q="0">91617178.1389</rep:amountAtDate>
<rep:amountAtPreviousDate q="0">0</rep:amountAtPreviousDate>
</rep:sectionLine>
- <rep:sectionLine>
<rep:lineName q="1">SHORT MARKET VALUE</rep:lineName>
<rep:amountAtDate q="0">-5365772.36</rep:amountAtDate>
<rep:amountAtPreviousDate q="0">0</rep:amountAtPreviousDate>
</rep:sectionLine>
- <rep:sectionLine>
<rep:lineName q="1">CASH BALANCE CR (DR)</rep:lineName>
<rep:amountAtDate q="0">-75857105.73</rep:amountAtDate>
<rep:amountAtPreviousDate q="0">0</rep:amountAtPreviousDate>
</rep:sectionLine>
- <rep:sectionLine>
<rep:lineName q="1">BOND ACCRUED INTEREST</rep:lineName>
<rep:amountAtDate q="0">612432.86</rep:amountAtDate>
<rep:amountAtPreviousDate q="0">0</rep:amountAtPreviousDate>
</rep:sectionLine>
- <rep:sectionLine>
<rep:lineName q="1">REG U EXCESS/DEFICIT</rep:lineName>
</rep:sectionLine>
- <rep:sectionLine>
<rep:lineName q="1">MARGIN EQUITY</rep:lineName>
<rep:amountAtDate q="0">11006732.908899993</rep:amountAtDate>
<rep:amountAtPreviousDate q="0">0</rep:amountAtPreviousDate>
</rep:sectionLine>
</rep:frontPageSection>
- <rep:frontPageSection>
<rep:sectionName q="1">EQUITY SWAPS</rep:sectionName>
- <rep:sectionLine>
<rep:lineName q="1">MTM AMOUNT EXPOSURE NY</rep:lineName>
<rep:amountAtDate q="0">0</rep:amountAtDate>
<rep:amountAtPreviousDate
q="0">-498944.5678497</rep:amountAtPreviousDate>
</rep:sectionLine>
- <rep:sectionLine>
<rep:lineName q="1">MTM AMOUNT EXPOSURE LDN</rep:lineName>
<rep:amountAtDate q="0">0</rep:amountAtDate>
<rep:amountAtPreviousDate
q="0">-40528.4437480892</rep:amountAtPreviousDate>
</rep:sectionLine>
</rep:frontPageSection>
</rep:FrontPage>

Jul 20 '05 #1
3 1175
Even when using the following style sheet i get no data

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:rep="http://localhost:7001/reporting">

<xsl:template match="/">
<xsl:value-of
select="rep:FrontPage/rep:frontPageSection/rep:sectionLine/rep:lineName"/>
</xsl:template>

</xsl:stylesheet>

Jul 20 '05 #2
In article <11**********************@z14g2000cwz.googlegroups .com>,
bjam <bs****@yahoo.com> wrote:
Even when using the following style sheet i get no data


Looks OK to me, and works with the stylesheet processors I have to
hand.

-- Richard
Jul 20 '05 #3
Richard,

Thanks for this... for some unknown reason this would not show up in
XML spy until I put HTML tags around it... go figure.. It did work
from the commandline perl libs that I was using to do XSLT though.
Thanks again for investigating this for me I really appreciate your
efforts.

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: sid | last post by:
Is it possible to Specify a style sheet to be applied to an XML file from the URL. So that I can call the XML file from one location and have one transformation and also call it from another...
12
by: williamc | last post by:
Is there anything wrong with having several classes with the same name in the same style sheet? Something like... div.pagedown { margin: 20px 0px 20px 0px; border-top: 1px solid #caa;...
17
by: Stanimir Stamenkov | last post by:
Is it possible to make two inline elements to appear adjacent stripping any white space appearing in between in the source? Example: <span class="adj">1</span> <span class="adj">2</span>...
2
by: Jerry Sievers | last post by:
tried to avoid using PRE in the page markup and instead used DIV CLASS=foo and assigned the white-space pre property to it. have some reports already that text is not showing as preformatted. ...
3
by: macgyver | last post by:
This is a strange question, and I think the answer is NO, but I am asking anyway. I am a member of a website which allows us to alter our member profiles. Using css in the middle of the profile...
33
by: amerar | last post by:
Hi All, I can make a page using a style sheet, no problem there. However, if I make an email and send it out to my list, Yahoo & Hotmail totally ignore the style tags. It looks fine in...
3
by: Chris | last post by:
Hi I have another style sheet question: We effectively have a page that has two text boxes on it. We would like one text box to be in one style and the other text box to be in another style....
0
by: Baren | last post by:
Hi! I have defined some style sheet for the DataGrid Header. It works fine in IE, But Netscape 6.2 doesn't display the DataGrid Properly. Its missing the Header Style. My style Sheet...
1
by: Daniel | last post by:
Does system.xml have any way to transofrm data with an xswl style sheet using strings like MSXML2 does? how to convert this to use System.XML so i do not depend on MSXML2 interop? static...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.