Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 25 of 500
Search took 0.05 seconds.
Search: Posts Made By: samjudson
Forum: XSLT November 16th, 2016, 06:49 AM
Replies: 4
Views: 331
Posted By samjudson
Your template matches each 'p' in turn, so it...

Your template matches each 'p' in turn, so it will output everything inside that template for each 'p' element. You need to match based on the parent element of all the 'p' (which you haven't shown)...
Forum: XSLT November 16th, 2016, 06:01 AM
Replies: 4
Views: 331
Posted By samjudson
http://p2p.wrox.com/xslt/47716-hints-good-xslt-pos...

http://p2p.wrox.com/xslt/47716-hints-good-xslt-post.html
Forum: XSLT June 28th, 2016, 04:57 PM
Replies: 7
Views: 389
Posted By samjudson
Wouldn't the following give you what you want? ...

Wouldn't the following give you what you want?


/doc/EOB/DETAIL/DETAILLINE/PRESCRIBINGPROVIDER[FULLNAME!='']/NPIINFO/NATIONALPROVIDERID
Forum: XSLT May 5th, 2016, 03:00 AM
Replies: 3
Views: 448
Posted By samjudson
You'll want to use something like...

You'll want to use something like "*[starts-with(name(),'ABC')]" to get all the nodes that start with ABC. Other than that its not clear what you want your output to look like.
Forum: XSLT March 30th, 2016, 10:29 AM
Replies: 2
Views: 478
Posted By samjudson
Would...

Would sum(dd:Report_Entry/dd:Payroll_Result_Lines__All_/dd:OT_Hours) not do what you want, without the for-each loop?

Also, your XML above doesn't look valid (lack of closing tags for the...
Forum: XSLT March 10th, 2016, 05:12 AM
Replies: 6
Views: 322
Posted By samjudson
Inside the xsl:for-each-group you have access to...

Inside the xsl:for-each-group you have access to a set, called current-group() that returns you all the nodes in that group.

So you can the perform a xsl:for-each over that group:

...
Forum: XSLT March 9th, 2016, 10:31 AM
Replies: 6
Views: 322
Posted By samjudson
Oh, and final count would be something using the...

Oh, and final count would be something using the count() and distinct-values() functions.
Forum: XSLT March 9th, 2016, 10:24 AM
Replies: 6
Views: 322
Posted By samjudson
You probably want to use the xsl:for-each-group...

You probably want to use the xsl:for-each-group instruction, something like this:


<xsl:for-each-group select="Position" group-by="concat(location, '|', code, '|', costCenter)">
......
Forum: XSLT March 9th, 2016, 10:11 AM
Replies: 2
Views: 215
Posted By samjudson
Not sure if the schema based approach is...

Not sure if the schema based approach is something that would work, but basically your template is not matching, so everything is going through the identity template.

The following gives the...
Forum: XSLT February 18th, 2016, 10:00 AM
Replies: 3
Views: 546
Posted By samjudson
Assuming Users is the root element of your XSLT...

Assuming Users is the root element of your XSLT then this works fine for me.

You are aware that Latonya Green's User_Detail is actually embedded inside the User_Detail for Richard Pratt, so is...
Forum: XSLT February 18th, 2016, 07:40 AM
Replies: 3
Views: 546
Posted By samjudson
Based on my none-existent knowledge of what your...

Based on my none-existent knowledge of what your input XML looks like this will work.
Forum: XSLT February 18th, 2016, 07:15 AM
Replies: 1
Views: 251
Posted By samjudson
You haven't given us enough information to go on.

You haven't given us enough information to go on.
Forum: XSLT February 2nd, 2016, 07:59 AM
Replies: 6
Views: 4,985
Posted By samjudson
You realise you've posted on the end of a SIX...

You realise you've posted on the end of a SIX year old thread, and we have no idea what you are trying to do.

Please start a new thread and explain exactly what you are trying to do, what you have...
Forum: XSLT December 27th, 2015, 10:33 AM
Replies: 1
Views: 468
Posted By samjudson
Hopefully this Q&A should point you in the right...

Hopefully this Q&A should point you in the right direction:

http://stackoverflow.com/questions/14841059/xslt-1-0-how-to-use-xslkey-with-document-function
Forum: XSLT December 23rd, 2015, 11:22 AM
Replies: 6
Views: 564
Posted By samjudson
You did just ask for the XSLT, without showing us...

You did just ask for the XSLT, without showing us what you've tried before, implying you want us to do the work for you.

If you want us to help you we need to know what you know so far, where you...
Forum: XSLT December 22nd, 2015, 03:57 AM
Replies: 6
Views: 564
Posted By samjudson
Top post in this forum gives some great hints and...

Top post in this forum gives some great hints and tips on making a great post:

http://p2p.wrox.com/xslt/47716-hints-good-xslt-post.html

Specifically - what have you tried so far - what does...
Forum: XML September 8th, 2015, 02:46 AM
Replies: 13
Views: 1,480
Posted By samjudson
Does this help:...

Does this help: http://stackoverflow.com/questions/22806022/how-to-use-svg-namespace-in-xhtml-documents

For a true XHTML file you may be missing the DocType declaration perhaps?
Forum: XML August 10th, 2015, 11:32 AM
Replies: 5
Views: 1,489
Posted By samjudson
I think you need to find some basic tutorials (or...

I think you need to find some basic tutorials (or by the Wrox book!) on XSLT and try to learn this stuff yourself. Unfortunately, as helpful as we try to be we don't have the time to do your work for...
Forum: XML August 10th, 2015, 04:57 AM
Replies: 5
Views: 1,489
Posted By samjudson
What is RDF? Show us what you want your output to...

What is RDF? Show us what you want your output to look like.
Forum: XML August 10th, 2015, 03:54 AM
Replies: 5
Views: 1,489
Posted By samjudson
What do you want the output to look like? What is...

What do you want the output to look like? What is the problem with your output at the moment..

Assume for a moment we don't know what RDF is and we don't know what you know...
Forum: XSLT April 29th, 2015, 04:29 AM
Replies: 3
Views: 402
Posted By samjudson
The only way you would get the output you are...

The only way you would get the output you are asking for into the output nodeset is if you do it manually. I don't think there is a way of getting the current template selector though, so you will...
Forum: XSLT March 30th, 2015, 06:27 AM
Replies: 5
Views: 581
Posted By samjudson
It looks like you would be better to actually...

It looks like you would be better to actually move this code into the Javascript of the resulting HTML document, rather than try to do it in XSLT. I'm sure it can be done, but perhaps not easily.
Forum: XSLT March 27th, 2015, 04:44 AM
Replies: 5
Views: 581
Posted By samjudson
Yeah, that doesn't really help much. What is...

Yeah, that doesn't really help much.

What is "option1" and "option2". What are you trying to output, and where in your input does this information come from?
Forum: XSLT March 25th, 2015, 09:44 AM
Replies: 5
Views: 581
Posted By samjudson
I suspect it was part of the WD-XSL namespace...

I suspect it was part of the WD-XSL namespace mentioned here:

https://msdn.microsoft.com/en-gb/library/ie/hh180178(v=vs.85).aspx

Try describing what the code above it trying to do, and we might...
Forum: XSLT March 20th, 2015, 10:58 AM
Replies: 5
Views: 444
Posted By samjudson
I don't know what an XML.CONFIG file is I'm...

I don't know what an XML.CONFIG file is I'm afraid, or what you'd use one for.

Saxon has a version of their XSLT processor called Saxon-CE which is an in browser XSLT processor with cross browser...
Showing results 1 to 25 of 500

 


All times are GMT -4. The time now is 09:39 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.