Adding 1 to a page number if it is odd
Tue, 19 Feb 2008 15:37:05 -0800 (PST)
Hi,
I'm trying to determine if the following gives me back an odd number:
<fo:page-number-citation ref-id="{$fo-id-end}"/>
When I try something like the code below, I don't get the results I
want.
<xsl:choose>
<xsl:when test="$fo-id-end mod 2 = 1">
..... do something
</xsl:when>
<xsl:otherwise>
.. ...
|
Dont display empty attributes
Tue, 19 Feb 2008 11:09:22 -0800 (PST)
I have an xml document that I would like to apply a stylesheet to. I
would like for the stylesheet not to display empty attributes.
Here is a sample of the XML:
<cue timeIndex="2" type="" correct="">Cue 1</cue>
Here is a sample of the xsl:
<xsl:element name="cue">
<xsl:attribute name="timeIndex">
<xsl:va ...
|
Trying to place seperate lines in e-mail body from xml
Tue, 19 Feb 2008 05:13:57 -0800 (PST)
Hi, I am trying to place e-mail body text onto seperate lines:
<Body>Asset [$ASSET_NAME$] ,ITV File [$ITV_FILE_NAME$] metadata
validation at $TIME$. Error detail is $MVT_ERRORS$</Body>
This is the line for the body of the e-mail, I'd like it to appear
more like this:
Asset [$ASSET_NAME$]
ITV File [$ITV_F ...
|
Display only a certain number of a subset
Fri, 15 Feb 2008 07:09:30 -0800 (PST)
Right up front, I confess to being an xml newbie. What I want to do
sounds simple enough, so I'm probably overlooking something obvious
due to my limited skills at this point... I have a database with
articles from a variety of publications and I need to display the 10
most recent articles that were written by a ...
|
xslt question
Wed, 13 Feb 2008 17:19:46 -0800 (PST)
Hi,
I have an xslt which generates a dropdown and I want to set the
selected="true" attribute to one of the option based on the value
which I get from the xml which I apply on this xslt. Can someone
please suggest how to do it.
Following are the XML and XSLT:
XML:
<root value="2"/>
XSLT:
<xsl:templ ...
|
Is it possible to format a number as hexadecimal?
Tue, 12 Feb 2008 11:37:54 +0000
Is there any way in XSLT to convert a numerical value into a
hexadecimal representation?
Something like a format-number-hex() function perhaps?
Dave Lowndes ...
|
String Conversion
Tue, 12 Feb 2008 09:02:39 +0100
Hello all,
I am new to XLS. I would like to get only the decimal value of a string
ID="abcdef_12345" (i.e. having 12345 to put in a new ID)
Thank you all
...
|
|
|
line is offset from the start of the script block
Mon, 11 Feb 2008 17:35:20 +0100
Dear sir,
I used below VBScript function inside XSLT. I found example and description
on microsoft site. However it always return below errors. Any helps?
{"Microsoft VBScript runtime error
Wrong number of arguments or invalid property assignment
line = 6, col = 2 (line is offset from the start of the scr ...
|
using external date function
Mon, 11 Feb 2008 12:34:25 +0100
Dear sir,
I am using XSLT 1.0. 2.0 is not possible in my situation because I am using
MSXML as the processor.
I need to use a date function to convert string into date and compare them.
The string can be ISO format.
I google and found an XSLT extension at exslt.org. I add the below namespace
to my xsl ...
|
XML to XML conversion using XSL
Mon, 11 Feb 2008 08:32:35 +0100
Hello,
I am trying to convert a XML scheme A to a XML scheme B, using XSL 1.0. Can
someone help me ?
Many thanks.
-------------------------------------------------------------------------------------------------------
Here is the schemes :
Scheme A :
<node TEXT="ROOT">
<node TEXT="N1">
...
|