numerating in <xsf:if> shows me position() in lue of 1...n
22 May 2006 06:39:40 -0700
I have such code
<xsl:if test="IsValid = 'True'">
<xsl:number />
</xsl:if>
but if IsValid meets True on 5 and 7 rows I got numbers 5 and 7
accordingly (like position())
in lue of just numeration of meeting condition like 1 and 2
How to fix this and numerate worked 'True' condit ...
|
Loop on nodes and get substring
Sun, 21 May 2006 03:56:01 -0700
I'm new in xsl,
My XML goes like this:
<Files>
<File>
<Name>1.gif</Name>
<Size>1026</Size>
<Location>dd</Location>
</File>
<File>
<Name>2.bmp</Name>
<Size>102541</Size>
<Location>dddd</Location>
</File>
</Files>
I need to loop on all <File> tag and show icon due file type (ie, ext). ...
|
XML learning
Sun, 21 May 2006 00:06:27 +0530
Any good starting point for xml related technologies? i need some pointers
for my students.
...
|
Newbie Sort problem
Sat, 20 May 2006 08:28:01 -0700
I'm no good at this XSLT lark. I have a largeish XML which is unsorted. I
want to be able to output 2 columns of unordered lists as per my curent XSLT.
However, I want to be able to sort on the programName element BEFORE I begin
building my 2 unordered lists.
How can I do this?
================XSLT BE ...
|
xsl newbie needs help with syntax
Fri, 19 May 2006 14:21:02 -0700
Hi,
I am using xsl to query an xml document.
// this one works
BSTR bstrQuery = ::SysAllocString( L"//Tra/incident[active='1'and city='TO'
and (event='Collision' or event='Closed collision')]" );
// following query fails (logically it is supposed to be the same as query
above)
BSTR bstrQuery = ...
|
Break out of for-each loop in xsl
17 May 2006 17:53:01 -0700
Hi All...
I am very new to XSL so i need ur help.
I know that in xsl there is no way that i can break out of a for-each
loop.
but i need to to break out after i at least enter once into the if
condition.
Here is my xml file,
<EMT>
<STRUCT>
<FIELD NAME="abc" VALUE="1"/>
<FIELD NAME="xyz" VALUE= ...
|
referencing the 'current' element in a select attribute
17 May 2006 14:25:56 -0700
I want to define a variable that consists of a set of elements where
each passes a predicate filter referencing the element to be evaluated.
Here's the code:
<xsl:variable name="example-elements"
select="elemD[ancestor::elemA/elemB[elemC= current()/@id]]"/>
So, here's the logic: I want to include elemDs w ...
|
|
|
Default column width autofit?
17 May 2006 11:43:19 -0700
Hi there, sorry for the total noob question but I am just experimenting
with an XSL stylesheet to take XML data and open directly into Excel.
The xml data is being generated from some reports so the number of
columns and rows may be different depending on the report executed, and
I want a generic xsl styleshee ...
|
Variables, params and xsl:if errors, oh my!
17 May 2006 11:37:53 -0700
I have two xml files exported from Excel which contain offers and bids
against those offers. These are linked by a common field of
TransactionNumber. When I call my template for an offer, I'd like to
store it's transaction number, then retrieve all bids from bids.xml
that contain the same TransactionNumber. My ...
|
namespace problem XSLT
17 May 2006 08:31:52 -0700
Hi everybody!
It's two days I'm trying to figure out a very strange problem on XSLT
I have this xml data
<rss version="2.0">
<channel>
<title>...</title>
<link>....</link>
<description>...</description>
<language>en</language>
<item>
<title>Afghanistan Flooding</title>
<description>[...]</descriptio ...
|