EDIT: [it started with character replacement
and I ended up with discovering string
replacements with help of Dimitre
Novatchev and Roland Bouman
I think the sample codes are sufficient to explain the requirements ..
This is the sample XML:
<root>
<node1>text node</node1>
<node2>space between the text</node2>
<node3> h...
Hi all,
Can anyone help me with this little issue I am having.
The XML
<MPN>
<MTR MSN="AB123456"/>
<MTR MSN="AB654321"/>
<MTR MSN="AB654322"/>
<MTR MSN="AB654323”/>
<MTR MSN="AB654324"/>
<JOB JobId="136">
<JMR MSN="AB123456">
<JRA DateActionRequiredBy="20090701120012" />
</JMR>
...
We have to transform some XML that contain numbers in exponent (aka scientific) notation
eg.
<Value>12.34e12</Value>
<Value>-12.34e-12</Value>
rather irritatingly, we cannot use the sum() function and the like because the XSLT parser expects numbers to be in decimal format.
[We are using the .Net XslCompiledTransform class...
I have a recursive nodes that I'm trying to set up for jquery-checktree. The nodes look like
foo/bar/ID
/NAME
/CHECKED
bar/ID
/NAME
/CHECKED
/bar/ID
/NAME
/bar/ID
/NAME
/bar/ID
/NAME
/CHECKED
/bar/ID
/NAME
...
Hi all:
Currently I have an xml structure in an app. I needed to convert it from one structure to another. I have the xsds for it. The app is in C#. Naturally I thought of using good old coding to convert it, but that sounded like the least efficient idea. Someone recommended me to use XSLT, but I'm not 100% sure how it works.
Doe...
i've 2 frames which both render different html pages using XSLT. Means, the container html file has 2 frames whose source are 2 different XML files.
Left frame displays menus and right frame displays content. content on right frame has different sections.
i want to achieve the following:
if i click on a hyperlink on left frame, it sho...
my menu links are coming from an xml which will be static. but my xml on right side will change every time depending on the link that was clicked on last page.
let me explain:
i've a page where on right frame, i've few links, say a, b ,c ,d.
When i click on a, it will take me to next page (which is also divided into 2 frames : content f...
Hello,
I'm using an XSLT stylesheet (by Antennahouse) to convert XHTML to an XSL-FO file. I defined a blank line in my XHTML file as 2 consecutive HTML BR tags. Now there is no native support for a blank line in the XSL-FO format. I want to work around this limitation by adding a height to the fo:block that the stylesheet inserts for a ...
Hi am build a generic template to list my content. But the Content may be sorted on different @'s or node()'s. So want to pass the xPath in.
<xsl:variable name="sort" select="@sortBy"/>
<xsl:variable name="order" select="@order"/>
<xsl:for-each select="Content[@type=$contentType]">
<xsl:sort select="$sort" order="{$order}" data-type...
Hi all:
I'm totally stuck on what is going on when I try to run the following xml against an xsl in an attempt to not get a blank page in the browser:
xml:
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="transform.xsl"?>
<Structure>
<Processes>
<Process>
.
.
...
Hi all:
In the xml (or xsl) namespace, there is a URL which isn't quite a URL, I mean, the http thing in the code below:
e.g.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
I'm curious as to where is that URL actually point to, and where is the referenced things stored?
(I tried googling, but withou...
i want to set the href for an anchor. Anchor element is present in a frame.
This url is of the form a.xml#section_a. Clicking on this <a> will take me to section_a of a.xml rendered using xsl.
name of file is determined dynamically from a parameter available in the browser url.
I can get this parameter using a javascript function.
I w...
Hi All,
I have a xml that has so many elements and most of that contain attributes.. for some of the attributes values are same so I need to group them and generate diff xml.
I/p Ex:
<TestNode>
<ABC1 value="10.7" format="$" />
<ABC2 value="10.5" format="$" />
<ABC3 value="20" format="Rs" />
<ABC4 value="50" format="Rs" />
<ABC5 val...
A legacy system that I am working on has a piece of xml which has data embedded in one of the nodes which uses its own format - for some or other reason. I need to extract the information and then re-format the dates.
This is the piece of xml:
<Information>
[OB]LGW|Sun 23, May 2010|11:15|MCO|Sun 23, May 2010|15:25[/OB]
</Information>
...
I have been making HTML/PHP/MySQL database apps for quite a while now. I have avoided using XML/XSLT in any application since I just pull the data out and format it within my PHP script, and display it.
Assuming I am not wanting my data to be portable to other people's applications (via XML), is there any reason to implement an XML/XSL...
Im not entirely sure if this is possible with XSLT and my lecturer had no idea what i was talking about so if anyone could help, thanks!!!
I have an XML file with a list of authors, each with a unique id, and a list of books, each with a child element with an IDREF as its value. The file is laid out like this:
<library>
<authors>
...
We have some software where we recieve XML data feeds that we translate to match our feed parser. I'm working on bringing in a new feed and I'm having a tough time splitting out one of the categories due to how the source feed comes in. I can't change our XML format or theirs, so I'm stuck with having to do this in nothing but XSL(T).
...
The web app uses XML from a web service, which is then transformed to HTML using XSLT. The app uses a HttpModule to get the XML using AddOnPreRequestHandlerExecuteAsync.
Classes Used:
XmlDocument - stores the xml.
XslCompiledTransform - stores the transform, is cached in Application.
Asynchronous HttpWebRequest using BeginGetResponse/E...
Hi, StackOverflow,
First question from me; I'm currently fixing a graphing service that uses XSLFO to convert our syntax to FO, and converting it to PDF in the end.
Previously we've been using PNG graphs from the web in the PDF exports, but this creates really ugly results, so we've decided to go with SVG for PDF instead.
However, the...
I want to print my output xml in a single line[when viewed in notepad or other simple text-editor], so as to remove the redundant white-space in my xml file. So which is the better method to follow for that ??
I think there are two options,
1) To use
<xsl:output method="xml" indent="no"/>
2) or to use
<xsl:strip-space elements="...