xslt Questions
5
Solved
What XPath can I use to select any category with a name attribute specified and any child node author with the value specified.
I've tried different variations of the path below with no success:
...
6
Solved
What can I do to make this code work?
<xsl:choose>
<xsl:when test='type = 6'>
<xsl:variable name='title' select='root/info/title' />
</xsl:when>
<xsl:when test='type...
Robinett asked 17/11, 2010 at 13:49
2
Solved
I want to be able to do some basic reassignments to variables in XSLT. How can this be achieved?
I just want to be able to convert this to XSLT (ignoring the appendMonthWithZero() function):...
5
Solved
How can I reassign a value to a variable previously assigned? I need it to works like this:
<xsl:variable name="variable2" select="'N'" />
....
<xsl:when test="@tip = '2' and $variable2 !...
3
Solved
Context
I am creating an XSL-FO document to convert my XML text to PDF.
In the XSL-FO, I have two consecutive inline elements, I would like a white space between them:
<fo:block>
<xsl:...
Lusitania asked 17/8, 2014 at 9:7
0
I've a question about long tables in Latex.
How is it possible to automatically break text content inside a long table cell.
I read lot of articles and examples and tried it (e.g. longtable)
Bu...
Preventer asked 28/10, 2019 at 8:41
8
Solved
I am using XML to store a small contact list and trying to write a XSL template that will transform it into a CSV file. The problem I am having is with whitespace in the output.
The output:
Frien...
5
Solved
I've to populate a total of 20 elements with XSLT. In my XML code I have a <select> with the values, there is anyway to not to write 20 forms?
My XML:
<output>
<select>
<id...
1
Solved
I have xslt/xpath v1.0 stack under .NET.
I want to set a variable $myVar conditionally:
<xsl:variable name="myVar">
<xsl:if test="$case ='1'">
<xsl:copy-of sel...
3
Solved
I am new in xslt. I have the following problem. I need within an xml, to remove a specific attribute (theAttributein the example) from a specific element (e.g. div).
i.e.
<html>
<head>...
3
I want to convert XML file into HTML file with help of XSLT. But I am getting an error i.e.
javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException:
com.sun.org.apac...
3
Solved
My questions are at the bottom of this post, if you wish to read them before the full explanation.
I'm converting an XML document to a pretty web page using XSL, and am having trouble with correct...
Northeastwards asked 18/11, 2010 at 21:13
8
Solved
General Problem
Though I may be diagnosing the root cause of an event, determining how many users it affected, or distilling timing logs in order to assess the performance and throughput impact of...
Spada asked 28/5, 2010 at 23:34
6
Solved
Let's say I have a date that I can represent in a culture-invariant format (ISO 8601).
I'll pick July 6, 2009, 3:54 pm UTC time in Paris, a.k.a. 5:54 pm local time in Paris observing daylight savi...
Krutz asked 6/7, 2009 at 19:46
3
Solved
I want to be able to generate a complete XML file, given a set of XPath mappings.
The input could specified in two mappings: (1) One which lists the XPath expressions and values; and (2) the other...
3
Solved
I have a value in xslt and I need to put it into the data-time attribute of the p tag
<xsl:value-of select="current()/eventTime" />
<p class="time" data-time="1">Duration: <xsl:va...
2
Solved
I'm trying to count the amount of A's there are in a school report.
Here is the report:
<class>
<student>
<first-name>Jane</first-name>
<last-name>Doe</last-name...
11
<ROOT>
<A>
<B>TESTING</B>
</A>
</ROOT>
XSL:
<xsl:variable name="nodestring" select="//A"/>
<xsl:value-of select="$nodestring"/>
I am trying t...
Cranston asked 14/7, 2011 at 16:7
6
Solved
I want to list featured websites on my website and I thought it would be cool to honor and use their favicon. How do I get it from the domain for an arbitrary URL in either JSP or XSLT? I can fire ...
5
Solved
5
Solved
What is the best way to loop in XSLT from 1 to 60?
I research in net, there are some templates to do this, is there any other way for example like a built-in function?
Hobbism asked 31/1, 2012 at 8:12
6
Solved
<a>
<xsl:attribute name="href">
<xsl:value-of select="/*/properties/property[@name='report']/@value" />
</xsl:attribute>
</a>
Is there any wa...
2
Solved
I have a lot of XML files which have something of the form:
<Element fruit="apple" animal="cat" />
Which I want to be removed from the file.
Using an XSLT stylesheet and the Linux command...
5
Solved
can array's be created and used in xslt? If so are there suitable examples online to study? If not is there a way to store values in a way that mimics an array?
11
Solved
I am using XSL FO to generate a PDF file containing a table with information. One of these columns is a "Description" column. An example of a string that I am populating one of these Description fi...
© 2022 - 2024 — McMap. All rights reserved.