xslt Questions

3

Solved

When rendering XHTML with lxml, everything is fine, unless you happen to use Firefox, which seems unable to deal with namespace-prefixed XHTML elements and javascript. While Opera is able to execut...
Woodborer asked 27/11, 2012 at 19:36

5

Solved

I tried to substring data with single quote in XSLT: String : DataFromXML:'12345' expected Result: 12345 <xsl:value-of select="substring-after('$datafromxml','DataFromXML:')"/> Result: ...
Bryson asked 13/9, 2012 at 10:5

5

Solved

<Description>this is my value 822880494 this is my value</Description> I'm quite new to xpath, xml and stylevision so this might be a basic problem. I am using stylevision 2010 and x...
Abiogenetic asked 17/1, 2012 at 7:26

1

I currently am creating a perfectly good PDF. there is nothing technically wrong with it. However, the TOC is ugly. The TOC is generated via xsl which is passed through jinja2 for simple details ...
Sully asked 15/5, 2018 at 17:56

13

I am trying to create a query string of variable assignments separated by the & symbol (ex: "var1=x&var2=y&..."). I plan to pass this string into an embedded flash file. I am having tr...
Aerotherapeutics asked 15/9, 2008 at 23:12

4

Solved

I need to save content that containing newlines in some XML attributes, not text. The method should be picked so that I am able to decode it in XSLT 1.0/ESXLT/XSLT 2.0 What is the best encoding me...
Archival asked 5/1, 2010 at 5:45

3

Solved

I have an XML like this: <PurchaseOrder> <ID>1</ID> <PurchaseOrderLine> <DATA>100<DATA> </PurchaseOrderLine> <PurchaseOrderLine> <DATA>2...
Gaygaya asked 2/10, 2012 at 7:17

2

Solved

I am using Saxon 9.4 home edition (Saxon-HE 9.4 .NET) to get support for XSLT 2.0 and XPath 2.0, and XQuery 1.0 in .NET. My code crashes when I load files without an URI. Is it possible to load x...
Smilax asked 19/4, 2013 at 9:16

3

Solved

<xsl:call-template name="SetNetTemplate"> <xsl:with-param name="xyz" select="$node1value + $node2value + $node3value - $node4value - $node5value - $node6value"/> </xsl:call-temp...
Floret asked 25/2, 2014 at 15:12

11

Solved

I have an XML document here that is served with a corresponding XSL file. The transformation is left to be executed client-side, without JavaScript. This works fine in IE (shock horror), but in Go...
Herbarium asked 5/6, 2010 at 18:25

5

Solved

I want to use JavaScript to show my XSLT, but on my server nothing is showing up in the browser. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> &lt...
Hawkeyed asked 19/4, 2011 at 20:38

7

Does anyone know of a way to write unit tests for the XSLT transformation? I've a lot of XSLT files and it's getting harder to test them manually. We have an example XML and can compare it ...
Ralf asked 11/4, 2011 at 15:41

7

Solved

I wanted to convert some xml to a magazine like pdf document. A lot like what LaTeX allows you to do however i was not able to find any new books or online tutorials on the subject. Is it wor...
Pyridine asked 13/4, 2010 at 14:31

7

Solved

What is the best IDE for creating and debugging complex XSLT stylesheets? For debugging, the ability to set breakpoints and step through the source would be great. I am interested in all o...
Greensward asked 2/6, 2009 at 19:2

2

Solved

Dear Friends good afternoon. My problem may be this is very basic one i.e. how can we remove root element from a xml file using xslt. Xml file example given below. <Result> <Jobs id="1"&g...
Gadgeteer asked 15/10, 2009 at 8:39

4

Solved

I want to grab a node from my XML file, the node has a prefix such as "latest_", but this may change and I'm keen for my XSLT to be as fluid as possible. Here's the XPath I want to use: /data/stat...
Winnick asked 17/11, 2010 at 9:36

2

In the Release Notes of WTP 3.1.0 they talk about WTP supporting XSLT 2.0. I have Eclipse Luna 4.4.1 with WTP installed, but <xsl:value-of select="system-property('xsl:version')" /> still ...
Edson asked 19/6, 2015 at 19:1

2

Solved

In XSLT, what is the difference between the "current node" and the "context node"? You can find both terms used here: http://www.w3.org/TR/xslt. When would you use one or the other? How do you ref...
Useful asked 20/6, 2009 at 19:29

2

Solved

i'm trying to transform a list to a distinct values list using XSLT. Input: <object name="obj1"/> <object name="obj2"/> <object name="obj1"/> Desired output: <object>ob...
Demanding asked 10/10, 2013 at 10:7

3

Solved

When parsing some an XSL XML file using docx4j, I keep receiving this error: 'The element type "img" must be terminated by the matching end-tag "</img>". Exception Error in Docx4JExceptio...
Sociality asked 6/11, 2013 at 14:18

3

Solved

I am trying to convert a document with content like the following into another document, leaving the CDATA exactly as it was in the first document, but I haven't figured out how to preserve the CDA...
Vasectomy asked 1/10, 2009 at 5:42

1

In relation to this question, I need to install Sxslt package in R on a windows platform. I used RStudio to compile the package from the source, but it encountered an error. It returned a message a...
Hetman asked 3/7, 2013 at 14:48

1

I want to prettify some XML, and I found following code (in this answer, JSFiddle). I modified it like this: const xsltDoc = new DOMParser().parseFromString([ // describes how we want to modify t...
Laugh asked 23/8, 2018 at 15:57

4

Solved

I'm trying to get the value of a number to 2 dec places from my xml. XML:<Quantity>0.0050</Quantity> XSL:<xsl:value-of select="format-number($quantity, '####0.00')" /> However ...
Fibriform asked 27/9, 2010 at 15:20

2

My problem: Fortify 4.2.1 is marking below code as susceptible for XML External Entities attack. TransformerFactory factory = TransformerFactory.newInstance(); StreamSource xslStream = new Strea...
Kane asked 24/8, 2015 at 9:16

© 2022 - 2024 — McMap. All rights reserved.