I'm looking for a way to have the XMLNS attribute propagate automatically from one XSL Template to another so I don't have to redeclare it each time.
Here's my situation. I'm trying to transform an XML file into an XHTML file using a XSLT file. My XML file is:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" enco...
I have an XML file which I'm trying to transform into XHTML using a XSLT file. I was wondering if it's possible to get a count of the number of times a template has been invoked. This is my XML:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" encoding="UTF-8" href="car.xslt" version="1.0"?>
<vehicle>
<car>
...
Hi Everyone,
This is my first post here at stackoverflow. My question is how to change the google calendar feed so that it only shows events for the current day automatically?
Basically what I want to do is output the feed onto a webpage that only shows events for today. The feed would change day by day. I've done something similar ...
I want to sort these elements in ascending order but with the nulls last rather than first which seems to be what xslt does by default. I've managed to do this but wonder if there is a better way. Here's my example.
<b>
<c>2</c>
<c>1</c>
<c>3</c>
<c></c>
<c>15</c>
<c>11</c>
<c></c>
<c>43</c>
<c>4</c>
...
I have an attribute: <names>Dan,John,Matin,Lewis</names>
Can you create a filter [names='Dan'] and get the XSLT to filter based on the list of values in <names>??
...
Hello,
I am working with XSLT 1.0 (so I can't use the replace() function), and I need to make a replace in a string, before use that string for sorting. Briefly, my XML doc looks like this:
<root>
<item>
<name>ABC</name>
<rating>good</rating>
</item>
<item>
<name>BCD</name>
<rating>3</rating>
</item>
</root>
Then I need ...
I have a list of elements that I want to split into individual lists of 3. The end result would be something like this:
<ul>
<li>element</li>
<li>element</li>
</ul>
<ul>
<li>element</li>
<li>element</li>
</ul>
<ul>
<li>element</li>
<li>element</li>
</ul>
My XSLT is like this, but it doesn't work, because I can...
I have xml like this:
<configurationData>
<path name='b'>
<path name='a'>
<setting name='s1'>
![CDATA[XXXX]]
</setting>
<setting name='s2'>
XXXX
</setting>
</path>
</path>
</configurationData>
where configurationData is the root node, and there can be may nested...
Currently I am looking for a good solid xsl:fo processor to use within a .net application.
I have seen a few but alot of them use the java virtual machine, which is something I do want to have running on the web server. I must have a .net implementation, one I have found so far which is open source is fo.net on codeplex, although it does...
I have an reference type of paragraph with element.
Example
Input file:
<reference>
<emph type="bold">Antony</emph><emph type="bold">,</emph> <emph type="bold">R.</emph>
<emph type="bold">and</emph> <emph type="bold">Micheal</emph><emph type="bold">,</emph> <emph type="bold">V.</emph>
<emph type="italic">reference title</emph></refer...
As similar to this question (there are more related entries, however as a new user I can only post one URL):
http://stackoverflow.com/questions/1489326/xpath-get-elements-that-are-between-2-elements
I have a question regarding the selection of set of elements that occur between 'other / delimiting' elements. This situation occurs when t...
I think I know the answer to this, but I just want confirmation I'm understanding this correctly.
When an XSLT template matches and executes, the children of the current node (the node current having a matching template executed) are not processed by default. You must call "apply-templates" to get the processor to traverse down into t...
What I am trying to do is use XSL to output all unique element and attribute names. Not their values, but their names.
So given an XML of:
<item id="12">
<price>12.00</price>
<author>Name</author>
<desc>Description</desc>
</item>
I want to show that there are elements of item,price,author,desc. In addition to that I want to k...
This seems like a pretty straightforward thing to do, but I can't find anything off the open-source shelf.
Is there a solution already out there that does the following:
can be configured with an arbitrary XSL stylesheet
generates a web form based on an arbitrary XML document and the XSL
creates edit functionality in appropriate place...
I'd like to use the value of an xslt parameter in an xpath expression. Specifically, as part of a not() call in an <xsl:if expression.
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- my_param contains a string '/foo/bar', passed in from ant -->
<!-- the 'no' is just a default value -->
<xsl:par...
Hi to all. My problem is after executing xlst file i am getting the output in text all in one line, but not in xml as required. My xml as well as xslt file is as follows.
<root>
<Jobs Found="10" Returned="50">
<Job ID="8000000" PositionID="600002">
<Title>Development Manager</Title>
<Summary>
<![CDATA[ An experienced D...
Hi, I have the following XML:
<HTML>
<HEAD>
<META name="GENERATOR" content="Microsoft HTML Help Workshop 4.1" />
<!-- Sitemap 1.0 -->
</HEAD>
<BODY>
<OBJECT type="text/site properties">
<param name="FrameName" value="contents" />
</OBJECT>
<UL>
<LI>
<OBJECT type="text/sitemap">
<pa...
Hi,
i have the following xml, which is the result of runnig xslt:
<?xml version="1.0" encoding="UTF-8"?>
<toc xmlns:fn="http://www.w3.org/2004/07/xpath-functions" label="Sample Table of Contents">
<topic label="Title1" href="Ref1#ref1">
<topic label="Title 2" href="Ref2#ref2">
<topic label="Title3" href="Ref3#ref3"/>
...
I need to be able to replace certain characters so that I can use them as CSS classes.
I have strings like, class(name), class&name, amonst others which are not valid CSS classes (As far as i can tell).
How can I use the replace function to replace multiple chracters,
E.g.
translate(className, ' ','') (would replace a space)
But i...
I have XML something like this:
<MyXml>
<RandomNode1>
<TheNode>
<a/>
<b/>
<c/>
</TheNode>
</RandomeNode1>
<RandomNode2>
</RandomNode2>
<RandomNode3>
<RandomNode4>
<TheNode>
<a/>
<b/>
<c/>
</TheNode>
</RandomNode4>
</R...