Questions tagged [msxsl]

69 questions
52
votes
3 answers

XSL: Avoid exporting namespace definitions to resulting XML documents

I'd like to take data from some XML files and transform them into a new XML document. However, I do not want the definition of a namespace in the XSLT to occur in the result document. In other words: source:
pypmannetjies
  • 25,734
  • 7
  • 39
  • 49
11
votes
1 answer

how to pass a parameter and use that in my xslt

i have a xml file and a related xslt file. I am using msxsl.exe and i need to pass a parameter as a command line argument and use that in my xslt file. how can i do that??? command: msxsl.exe country.xml sheet.xslt -o country_sheet.html…
sulakshana
  • 183
  • 1
  • 2
  • 5
10
votes
1 answer

successor of msxsl.exe?

We intend to migrate our framework from msxml4 to msxml6. We where using msxsl.exe as yet. It seems to support only MSXML versions up to 4.0, as command line msxsl.exe -u version 6.0 tells me. Is there a successor of msxsl.exe? Any alternative…
Matthias Doringer
  • 109
  • 1
  • 1
  • 3
9
votes
4 answers

Using xslt get node value at X position

How can I get using xslt, node value at X position, without using foreach x x x This is explained in programming sense:
jasin_89
  • 1,993
  • 7
  • 30
  • 41
5
votes
1 answer

Issue using assemblies and namespaces in msxsl

I have an XSL transform that is using msxsl to add extension methods in C#. I have the following setup for msxsl:
Thomas W Tupper
  • 625
  • 1
  • 6
  • 17
4
votes
2 answers

Reference C# code in an external file within msxsl tags

I'm using a system which consists of many complex XSL transforms which each work on large XML files. A proprietary program compiles the XSLT on each of the XML files, before passing the XML files to our databases. The XSL transforms almost always…
Overlord_Dave
  • 894
  • 10
  • 27
4
votes
4 answers

How to save XML to a file

How do you save translated XML to an actual file on disk? I am new to XML/XSLT and I am trying to figure that out. I can't seem to find any examples that work for me. For example, I just want to save the file to c:\temp\text.xls. How to I save…
dashrader
  • 317
  • 3
  • 14
3
votes
5 answers

how to iterate through XML param in XSLT

I have an XML file that I am transforming via XSLT. I am passing an XML as parameter to the XSLT via C#. The parameter's name is attachment and it contains XML. It is written as follows: StringWriter sw = new StringWriter(); XmlTextWriter w =…
jvm
  • 1,662
  • 8
  • 27
  • 46
3
votes
1 answer

Using an assembly for scripting in a referenced XSL template

There are two XSL files. One includes another using an . The main template decides which actual templates to call depending on node values, and included templates contain actual transformation rules. Nothing special here. But included…
GSerg
  • 76,472
  • 17
  • 159
  • 346
2
votes
1 answer

calling function with xslt using xpath selection

How can I call javascript/c# function in xslt passing xpath selection value. Here is how I call function with manualy typed parameter:
jasin_89
  • 1,993
  • 7
  • 30
  • 41
2
votes
3 answers

How can I use the XPath expression "document('')" in a .NET XsltCompiledTransform? Should I?

I'm currently working on a web site where we're sending down XML+XSLT to clients that support it, to save on bandwidth. However, if a client doesn't support it, we're doing the transform on the server side, and sending down the resulting HTML. In my…
Alastair
  • 5,894
  • 7
  • 34
  • 61
2
votes
3 answers

xml merge two files using xsl?

I need to merge two similar xml files, but only records which match on common tags, e.g. in the following example: file1.xml is a joe b
debs
  • 69
  • 2
  • 8
2
votes
1 answer

Using XSLT 1.0 to remove elements (WXS components/files/etc) based on element in referenced XML file

(sorry this may be a bit long) I have a WXS file that was generated by WiX's heat utility. I'm trying to modify it with an (existing) exclusions.xslt file to automatically exclude certain components based on the contents of another XML file (I'll…
Andrew DiNunzio
  • 87
  • 2
  • 10
2
votes
1 answer

How to pass node value to custom msxsl:script function?

I have a custom function in my XSLT document like so: function uriencode(string) { return encodeURIComponent(string); When I try passing it the value of a node like…
NeomerArcana
  • 1,978
  • 3
  • 23
  • 50
2
votes
2 answers

how to pass dynamically created xml in XsltArgumentList msxsl

I am in a fix here where I have to pass the dynamically created xml in C# code to be passed to xslt as param and then get the values from it. following is the sample xslt
Rakesh
  • 310
  • 3
  • 19
1
2 3 4 5