Hi!
I'm developing a web app for Firefox that has a button that triggers a client-side XSLT transformation of the document's DOM, with a stylesheet fetched via AJAX.
Here's a portion of the XHTML that's going to be transformed:
<html>
<head>
<title>Static Javascript-based XMR Form Creator</title>
</head>
<body>
<h1 id="title">...
I have a part's list built out in XML and each part is labeled as such:
<division>
<parts>
<part number="123456 " drawing="123456 " cad="y">
<attribute>
<header>Header</header>
<list>2</list>
</attribute>
</part>
And I need to get the data behind the number and drawing attribute...
I want to add a unique attribute say "ind" to every tag in the xml. How do i do it using xsl. It need'nt be a sequence number. As long it is unique for every tag it is sufficient.
...
Hey guys,
I'd like to simulate a flag in an xslt script. The idea is for template foo to set a flag (or a counter variable, or anything), so that it can be accessed from template bar. Bar isn't called from foo, but from a common parent template (otherwise I would pass a parameter to it). The structure is like this:
<xsl:template match=...
Hello all
I have the following xml file:
<xfa:data>
<form1>
<Page1>
<Page2>
<contractInfo> ... </contractInfo>
<paymentInfo> ... </paymentInfo>
</form1>
<commercialType> .... </commercialType>
<userList> ... </userList>
<officesList> ... </officesList>
<commercialType> .... </commercialType>
<userLi...
In CruiseControl.NET there appears to be the same xsl stylesheets in the server directory as well as the webdashboard directory?
Is one for transformation for saving to the build report xml and the other for display on the web dashboard?
What are the different directories of xsl stylesheets used for?
-- Lee
...
Dear all,
I would like to write a xslt rule if it matches a certain chapter ID that it sets autolabel to zero on the section.
in pseudo code:
IF CHAPTER == LOGBOOK
SECTION.AUTOLABEL = 0
ELSE
SECTION.AUTOLABEL = 1
ENDIF
But after reading the docbook xsl website and docbook xsl reference i'm still unable to figure out how to d...
For my bachelor thesis I want to implement a shopping (price comparison) portal prototype based on XML Data.
The main requirement is to get a very clear and customizable HTML template, which should be hosted by the customer on his own webserver.
I'm not very sure if XSLT meets this requirements, as it generates a lot of xsl-related cod...
I've implented a simple webapp that transforms XML based on an XSTL stylesheet. It works fine on all the Windows servers I've deployed it on (to Tomcat), but on all Linux systems, I get a compile error on the XSLT.
As best I can tell, it's because Java 1.6 isn't using the same processor behind javax.xml.transform. On the one Linux sys...
I'm trying to format strings in XSLT that needs to be in camel case to be used appropriately for the application I'm working with.
For example:
this_text would become ThisText
this_long_text would become ThisLongText
Is it possible to also set this up where I can send an input to the format so I do not have to recreate the format mult...
Hello,
i would like to transform a XML into PDF using a XSLT. A killer feature would be a live preview of the result - so when i edit the XSLT, some seconds later (after transforming) the resulting PDF will display in a parallel pane.
Does someone know an IDE fullfilling this requirement?
...
I have to compare adminStatus value whether it is 'Down' the input may be in any case,how to igonre the case using only xslt 1.0
<xsl:if test="$adminStatus='Down'">
do something
</xsl:if>
...
I have some XML/TEI documents, and i'm writing an XSLT 2.0 to extract their content.
Almost all TEI documents has no namespace, but one has the default namespace (xmlns="http://www.tei-c.org/ns/1.0").
So all documents has the same aspect, with unqulified tags like <TEI> or <teiHeader>, but if I try to extract the content, all works wit...
Hi,
How to delete an empty column in HTML table using XSLT, and having something like this:
<table id="cas6">
<tr>
<td />
<td>
<table>
<tr>
<td>rechin</td>
<td />
</tr>
<tr>
<td>amarillo</td>
<td />
</tr>
</table...
Inside my XSLT that is transfomign a order XML, I want to dump the entire XML I am currently working with.
Is this possible?
I am weaving some HTML based on XML, and want to dump the entire XML into a textarea.
...
I have a single xml document (data.xml), which I display as HTML using an XSLT document (transform.xsl) with the following line in data.xml.
<?xml-stylesheet type="text/xsl" href="transform.xsl"?>
Suppose, however, I want to display this information in two different ways, one at http://www.domain.com/data.xml and one at http://www.doma...
Hello everybody!
At runtime I receive xml document and I want to display it somehow different in JSF. For example:
This:
<invoker.ArrayOfDictionary>
<dictionary>
<invoker.Dictionary>
<id>gcide</id>
<name>The Collaborative International Dictionary of English v.0.48</name>
</invoker.Dictionary>
<invoker.Diction...
It sounds easy, but none of my "easy" syntax worked:
<xsl:param name="length"/>
<xsl:attribute name="width">$length</xsl:attribute>
not
<xsl:attribute name="width"><xsl:value-of-select="$length"></xsl:attribute>
any suggestions?
thanks
...
I have an XML file that I use for storing and displaying recipes that I collect, but that same XML file also has updates for the site at the top of it. How would I, say, use Recipes.xsl to transform Recipes.xml for display as an actual website, and use RecipesRSS.xsl to transform Recipes.xml into Recipes.rss?
Currently, my XML file is f...
I want an XML stylesheet (XSLT) that will put the attributes of a few, specific, child nodes one-to-a-line. What is the XSLT for this?
I recently asked a related question that someone offered a stylesheet to solve but their stylesheet didn't work for some reason, and I am curious why -- the attributes simply didn't end up one-per-line....