I have written xslt scripts header & footers for blank pages, it is just a copy of the normal header and footer templates for other pages. The script is working for other pages, but its not working for blank pages..?
Could anyone suggest me something?
Here is my code:
<xsl:template name="insertBodyBlankOddHeader">
<fo:static-conte...
I want the DocBook documents in my SVN repository to look nice if someone looks at them in a web browser. I've started to write a CSS stylesheet, but I think that it will have significant limitations -- particularly ones regarding hyperlinks.
There is a large body of DocBook XSL stylesheets at the DocBook site , but they don't seem to ...
Is anyone aware of implementations of the standard javax.xml.transform.Source and javax.xml.transform.Result which operate on underlying POJOs?
In other words, I want to use XSLT to transform one java object graph into another.
I am currently using xstream to render the POJOs to a W3C DOM, and then using DomSource and DomResult to pass...
Hi All,
want to know How to convert 2009-09-18 to 18th Sept in xslt?
Thanks.
...
I'm using this script to truncate a text string in sharepoint 2007, but it doesn't work and I can't see why?! Any ideas offered greatly appreciated.
From Header.xsl
<xsl:template name="fixedstring">
<xsl:param name="targetVar">
<xsl:param name="allowablelength">
<xsl:value-of select="substring($targetVar, 1, $allowablelength)">
<xsl:if...
I have the following XSLT:
<xsl:template match="/">
<div id="dokumentliste">
<xsl:variable name="alleNyheder" select="$currentPage//node" />
<xsl:for-each select="$alleNyheder">
<xsl:sort data-type="text" select="@createDate" order="descending" />
<xsl:if test="./data[@alias='manchet'] != ''">...
I have to create one table using XSLT and CSS. The table should look like
enter code here ID FNAME
1 AA
2 BB
XML:
enter code here <students>
<studentDetails id="1" fname="AA"/>
<studentDetails id="2" fname="BB"/>
</students>
XSLT so far:
I hav...
I'm trying to create an address that validates against a schema set in stone, it requires that at least 2 of the 5 lines have been entered.
Only show address node if at least two of the five lines are available.
Is there a way I can check this using XSL
The input looks like this:
<Services Street="1 The Road " ExtraAddress="The Stre...
Hi All,
I am facing one problem while writing one xslt:
xml:
<students>
<studentDetails tag="to" id="1" fname="AA"/>
<studentDetails tag="mo" id="2" fname="BB"/>
</students>
writing a xslt i have to convert it into HTML:
<table>
<tr>
<th>to</th>
<th>mo</th>
</tr>
<tr>
<td>1</td>
<td>2</td>
...
Currently I have some xml documents which are converted via xsl into html. The html is converted via abcpdf into a pdf document. The content of the pages is dynamic. A page is represented by a div tag, however the amount of content going in could in fact be 3 pages long & I need some pages to have a header and a footer inserted and some ...
I am new to XSLT. I want to combine two nodes base on the same element value.
Here is input file.
<data>
<node>
<itemA element1="a" element2="x">
<itemBs><other elements with element2=x></itemBs>
</node>
<itemA element1="a" element2="y">
<itemBs><other elements with element2=y></itemBs>
<node>
<itemA element1...
Hi,
I'm just starting to play with the XSLT system in umbraco where I was hoping to produce a macro which listed all the media under a specific media directory. I have come across umbraco.library:GetMedia but, frankly, I have no idea what to pass to it in order to get a list of items. The API docs at http://umbraco.org/apiDocs/html/M_...
I have the following XML file :
<?xml version="1.0"?>
<Table69>
</Table69>
And want to read the body of element "Table69", I have used the following XSL file :
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml"/>
<xsl:template match="/">
<xsl...
I'm working with a system (Maximo) that generates a text file. I need to remove just the first line of the file. The way to do that is using XSLT.
Any idea?
...
Basically, I want an exact copy of the XML, except I'd like to sort certain nodes by their ID attribute. Not all elements with the ID attribute should be sorted.
I've kludged together a working stylesheet, but it requires me to hard-code the <xsl:apply-template>'s in for all sibling nodes to the nodes I'm sorting on. I've no formal ...
I have an xml document that I am transforming with xslt into an xsl-fo document. I have this tricky problem I've been trying to track down a solution to for a long time...
In my source xml I have a few tags interspersed throughout. I want to format these as underline in the resulting document, however I have not been able to do so.
I'...
Using .net XsltCompiled transforms, whats the best way to perform date diffs?
Is defining a C# code snippet via the ms:script CDATA block "good enough"? or is moving to a different transform engine worth it i.e. Saxon?
...
Hello,
I have a multi chapter docbook documentation. It is converted to HTMLHelp with xslproc the XSL\xsl\htmlhelp\htmlhelp.xsl file.
I need to add a footer and header to the generated HTML pages. I am a newbie about docbook (using it in a simple fashion so far) and XSL. Any help is appreciated.
Thanks,
Paul
...
Hello,
I have a simple XSL file which looks like:
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="html/docbook.xsl"/>
</xsl:stylesheet>
I have an XSL file which lies in a folder on the disk (not on the web). It's path relative to my XSL file (above) is:
.....
I've been asked to convert some contitionl formatting from an excel spreadsheet into xsl for use in SharePoint.
The table we're outputting contains a due date, basically I need the following to happen:-
When due date is equal to current date add css class red
When current date is four or less days before the due date add css class Am...