Questions tagged [apply-templates]

90 questions
0
votes
2 answers

XSL apply-templates output issues

Given this XML:

50 Murphy 33

40

Piotr Dajlido
  • 1,982
  • 15
  • 28
0
votes
1 answer

XSLT using extra for-each or apply-templates using Muenchian method?

I've started learning XSLT and I've used the Muenchian method in an exercise. I've found 2 different ways of getting my expected result. With the apply-templates and with an extra for-each. The key:
Lewis
  • 225
  • 1
  • 6
  • 18
0
votes
1 answer

xslt apply-templates removes everything but values passed

I am using XSLT templates to generate emails that will go out to call center. Issue I am having - transformation in apply-templates eliminates everything but the values. Chances are this is something trivial that I am failing to see. XSLT:
Matas Vaitkevicius
  • 58,075
  • 31
  • 238
  • 265
0
votes
1 answer

Output two separate nodegroups based on a shared property/value

I'd like to start by saying I'm not super good at XPATH and that is the main reason I come to you guys for some assistance. So I was working today on trying to "group", or so to say, some data from an XML file based on both of them sharing an ID. I…
Aleski
  • 1,402
  • 5
  • 16
  • 30
0
votes
2 answers

How to Strip out specific Node using XSLT

I have the following xml and looking to produce an out put which contains only GENRE_1 and GENRE_3 and any other book ids. This means GENRE_4, 5 and 6 will be stripped out. I have tried using the sample xslt but not getting it right. Will appreciate…
reuel
  • 3
  • 3
0
votes
0 answers

Maximum number of xml nodes in document?

i have the following XML Structure (for example) .. .. ..
krisK
  • 1
  • 1
0
votes
1 answer

XSL using apply templates and match instead of call template

I am trying to make the transition from using call-template to using applay templates and match but i'm not getting any data displayed only what is between the volunteer tags. When i use call template it works fine but it was suggested that i use…
AdRock
  • 2,959
  • 10
  • 66
  • 106
0
votes
0 answers

R - could I have avoided for loop here?

I'm an R newbie trying to use an apply function, recommended as good style, but here's I've failed. I have two data frames - one a collection of records from my bank statements, the other a bunch of records, read in from a database, detailing a…
Tim Lund
  • 21
  • 2
0
votes
2 answers

Copy a record and write to xml twice using XSLT

I need to copy my xml record twiceusing XSL't can any 1 guide me with it. The xml looks like ABC ABC ARUN JAY SHREE MAKU MACK
0
votes
1 answer

Convert HTML to plain text using XSLT - apply-templates and order of content

I am trying to convert HTML document into plain text document using XSLT. However, I am quite new to XSLT and I can't understand why ouput of my transformation is different from my desired output. My input HTML document:

Heading…

Rafal
  • 864
  • 10
  • 21
0
votes
1 answer

XSL1.0 - Apply-templates only takes the first child node

I'm working on this new addition to report dip-sensor data. But I'm running into a problem where apply-templates only checks for the first node and not the rest. I also have tried changing the code to use a for-each instead of…
misterbear
  • 803
  • 2
  • 13
  • 33
0
votes
1 answer

Apply XSLT template to string returned from function

(all code here is simplified from it's original version) My company has a function used in XSLT (1.0) which returns the content from a file from our file system. I need to be able to parse the return of the function using apply-templates. Consider…
Sandy Gifford
  • 7,219
  • 3
  • 35
  • 65
0
votes
1 answer

What is the proper select attribute for this XSLT `` tag?

I'm using xslt to render a soap response to json. I have no control over the soap service. I'm able to use to process a couple of elements, but I can't get one of the templates to work. I have it working using…
ryang
  • 3
  • 1
0
votes
0 answers

Access CustomControl's element programmatically in WPF

I have created a custom control which will have only one Grid into it. Here is the part of the code from Generic.xaml