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.

XSL - Positions

Hi All,

I use this variable to get the amount of lines i need to pad out an fop document

<xsl:variable name="xtra_lines" select="number(20 - (count(orders/item) mod 20))"/>

XML layout

<orders>
<item comment='Y'>
....
</item>
<item comment='N'>
....
</item>
</orders>

The above is working ok but now i need to only include only the nodes with comment = N

Any thoughts on the changes to my variable?

Regards

Ian
Mar 11 '08 #1
1 1239
Got it to work using..

<xsl:variable name="xtra_lines" select="number(20 - (count(orders/item[comments = 'N']) mod 20))"/>

Ian
Mar 11 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Colin Green | last post by:
OK here's is what I wish to do. I have an XML file that I want to read into an XmlDocument. I then want to be able to interrogate the XmlNodes to find both their start AND end character positions...
0
by: KK | last post by:
Dear All I have an MDI Application which needs to restore it's previously closed state on subsequent openings. While closing the application, I am storing the positions of all the Mdi child...
4
by: Sasidhar Parvatham | last post by:
Hi All, How do I compare two strings and get all the positions where there is a difference between them? Thanks, Sasidhar
5
by: Bob Maxie | last post by:
Hey all, I've played about with ASP.NET for a couple of years and was hoping to start going 'pro' soon. I've also have been employed as a software developer doing primarily C++ for several...
4
by: Anon | last post by:
Hello All! I have a long string that I need to make sense out of. I have the documentation about what info is between which characters, I just need to somehow parse each 94 character string into...
14
by: micklee74 | last post by:
hi say i have string like this astring = 'abcd efgd 1234 fsdf gfds abcde 1234' if i want to find which postion is 1234, how can i achieve this...? i want to use index() but it only give me the...
0
by: Jeff | last post by:
MORE THAN A THOUSAND POSITIONS NATIONWIDE Go to www.sayhi.to/JeffAltman Jeff Altman, The Big Game Hunter, is looking for people with a variety of backgrounds for Technology jobs Accounting...
0
by: Alex D. | last post by:
Hi. I am trying to dynamically change the nodes pictures in javascript in my treeview and with patience I visited all the urls in my ImageArray to see what picture was. Then I used the same url to...
0
by: IT Jobs | last post by:
Hi We are from Ventures IT Solutions, A Young Organisation based in Delhi, and is started with a vision to provide, quality services to our esteemed clients and candidates, We have some...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.