Hi,
I have an XML file which is transformed with XSL. Some elements have to be changed, some have to be left as is - specifically, text with entities ", &, ', <, > should be left as is, and in my case " and ' are changed to " and ' accordingly.
Test XML:
<?xml version="1.0" encoding="UTF-8" ?>
<root>
<...
How to call XSL template from java code ?
Please note that, I don't need to know how to transform xml docuemnt by XSL in Java.
What I need exactly is that, I have some XSLT document that contains a template that do something, ex:
<xsl:template match="/">
<html>
<body>
<h2>My CD Collection</h2>
<table border="1">
<tr ...
I want to use XSL to convert XML to another XML
The input xml contains the following element
<ViewSideIndicator>0</ViewSideIndicator>
which need to be converted to the following
<ImageViewDetail ViewSideIndicator="Front"/>
in the input file, if the value is "0", then it should be "Front" in the output
and if the value is "1", then...
UPDATED - since I was not clear in me expressions. Will try again:
I have a form with several inputs that are created dynamically like this:
<form id="tellafriend_form" method="post" action="landingpage.aspx">
<!-- static example -->
<input type="text" id="my_example" name="my_example" value="" />
<!-- dynamic part -->
<xsl:fo...
I have an XML file:
<schools>
<schcool>
school1, school2, school3, school4, school5
</schcool>
</schools>
I want to write XSLT (version 1.0) to change the result to a reverse order like this:
<schools>
<schcool>
school5, school4, school3, school2, school1
</schcool>
</schools>
Can anyone help...
Is there a problem with xml tags that have a dash in them??
I am trying to generate a pdf from and xsl and an xml..
I have the following for example:
<car>
<name>toyotoa</name>
<color-value>green</color-value>
</car>
In my xsl I have something like
<fo:inline font-weight="bold"> <xsl:value-of select="name" /> </fo:inline>
th...
Hi all.
We are generating pdf using apache's xsl fo engine, namely fop 0.95. We have been successful in displaying arabic text from xml to pdf. But there is some problem in the direction of the displayed words.
If we have 'sangam' (please assume that 'sangam' is in arabic) in xml, it gets displayed as 'magnas'. Has anyone encountered th...
I have a situation where I want to extract some information from some very large but regular XML files (just had to do it with a 500 Mb file), and where XSLT would be perfect.
Unfortunately those XSLT implementations I am aware of (except the most expensive version of Saxon) does not support only having the necessary part of the DOM rea...
Hi,
I have a page that is pulling in an xml file uisng xslt. I need to add some javascript to it and have managed to get it all working in IE and FF but Safari is a no no. Here is the code I am using:
<SCRIPT LANGUAGE="javascript" DEFER="true">
<xsl:text disable-output-escaping="yes">
<![CDATA[
javascript here
]]>
</xsl:te...
I would like to remove the line break that follows all text that says See the Exhibit "
Unwanted linebreak as shown in notepadd++:
This is what I have so far:
<xsl:template match="p">
<!-- output everything but the See the exhibit text should have the line break removed -->
</xsl:template>
Any ideas? Thanks!
...
I have an xml document with a node containing the escaped xml serialization of another object, as in this example:
<attribute>
<value>
<map>
<item>
<src>something</src>
<dest>something else</dest>
</item>
</map>
</value>
</attribute>
How can I ap...
Bad wording on the question, sorry about that. Will try to explain what I'm trying to do.
Basically I have the output from a search as Xml and in that Xml there is a node like this one:
<FIELD NAME="body">
Somebody named
<key>Doris</key>
and
<key>Arnie</key>
</FIELD>
In short, what I need is to replace "<key>" with "<stron...
Hi,
Given the following XML:
<results name="queryResults">
<int name="intfield1:[* TO 10]">11</int>
<int name="intfield2:[10 TO 20]">9</int>
<int name="intfield1:[10 TO 20]">12</int>
</results>
I would like to produce this XML:
<results>
<field name="numberfield1">
<value name="[* TO 10]">11</value>
<val...
Hello all,
My problem is this,
I'm a student, working on northwind. I've created an aspx page that deals with deferent xml/xsl results by just using sqlparams.
I need to preserve the state of the last querystring so that I could preserve the result set from the last aspx page in the next...and I just can't find a way to do it.....looki...
If I have the following table:
<table>
<tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td><td>6</td></tr>
<tr><td>A</td><td>B</td><td>C</td><td>D</td><td>E</td><td>F</td></tr>
</table>
How would I split this in XSLT so that I end up with the following:
<table>
<tr><td>1</td><td>2</td><td>3</td></tr>
<tr><td>A</td><td>B...
I have the input
<Date value="20091223"/>
and I want the output to be
<Date>23122009</Date>
I was trying to use substring function to reformat the date
<xsl:value-of select="substring($Date,1,4)"/>
But how to concatenate the extracted year and months and day together.
...
I'm developing a skin for DotNetNuke 5 using the DNN Done Right menu component which uses an custom XSL-T to convert the XML sitemap into an HTML navigation.
Using XSL-T is a life saver in comparison to the other ways of building a navigation menu. However I've run into problems doing something a little more complex, as I'm a newcomer t...
Hello,
I have a following xml file .
T0020.xml
SAFER
04.02
01.00
REPLACE
2009-09-01T00:00:00
CT
274845
US
AR
55002
I
100
2007-11-06
2009-08-03
I have to insert xml data into following table
IRP_ACCOUNT
Field Name Field Type
FILE_NAME VARCHAR2(120)
IRP_ACCOUNT_NUMBER VARCHAR2(32)
IRP_ACCOUNT_T...
I tried called css import but cannot evaluate xslt variable , is there any other way of doing this
<xsl:template match="/" priority="1">
<xsl:variable name="RecipeId" select="page/abc/a'" />
<xsl:variable name="CampaignId" select="page/abc/a" />
@import "lander_umetrix_264.css?ucid={$CampaignId}&urid={$RecipeId}";
...
Given the following sample;
<ul id="s-nav">
<xsl:for-each select="$currentPage/ancestor-or-self::node [@level=2]/node">
<li>
<xsl:if test="$currentPage/ancestor-or-self::node/@id = current()/@id">
<xsl:attribute name="class">current</xsl:attribute>
</xsl:if>
</li>
</xsl:for-each>
</ul>
When the current nod...