|
hi, i don't know how to add diferents rows to the same column, and i would like to know if somebody could tell me.:->
La Light
|
|
|
|
|
Iridania wrote: hi, i don't know how to add diferents rows to the same column, and i would like to know if somebody could tell me
You want to insert Row and Column in what thing ?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
hi,
Help me anyone please... I want to create a tab control in asp.net application using xml.
baski
|
|
|
|
|
Hi Baskaran,
U can add new tabs and pages to the tabstrip controls by the follwing way.
Following is the way to add one tab to the tabstrip control but by using loop u can add as many tabs as u want to.
TabSeparator Ts = new TabSeparator();
tsVert.Items.Add(Ts);
Tab Tb = new Tab();
Tb.Text = "New Tab";
tsVert.Items.Add(Tb);
Ts = new TabSeparator();
Tx.DefaultStyle = Microsoft.Web.UI.WebControls.CssCollection.FromString("width:100%");
tsVert.Items.Add(Ts);
PageView pg = new PageView();
Label lbl = new Label();
lbl.Text = "Mahesh";
pg.Controls.Add(lbl);
mpVert.Controls.Add(pg);
Thank you.
-- modified at 1:36 Monday 5th December, 2005
|
|
|
|
|
hi ,
Things we have done:
Based on XML we have created one DTD for it.
Now in place holder we have placed details like skuid,full_name,product properties details.
Our requirement:
We have one full image path for every product in XML , we need to display product image for each product.
by the place holder text content dynamically increase according to xml file content .
but we are unable to locate picture dynamically.it shows only the first product picture.
constraints we found:
no dynamic increment of textbox like text
Advance Thanks,
|
|
|
|
|
I'm trying to add mouseOver effects to my xsl transformation.
<a><xsl:value-of select="EnglishName"/></a>
onMouse over
<a><xsl:value-of select="FrenchName"/></a>
any ideas how i can go about doing this ?
thank you
|
|
|
|
|
<a onmouseover="this.innerText = '{FrenchName}';" onmouseout="this.innerText='{EnglishName}';"><xsl:value-of select="EnglishName"/></a>
or
<A>
<xsl:attribute name="onmouseover">
<xsl:value-of select="FrenchName" />
</xsl:attribute>
<xsl:attribute name="onmouseout">
<xsl:value-of select="EnglishName" />
</xsl:attribute>
</A>
-- modified at 8:42 Tuesday 27th December, 2005
|
|
|
|
|
Is there an easy way to transform an xml document to another xml document with all the elements sorted?
.............................
There's nothing like the sound of incoming rifle and mortar rounds to cure the blues. No matter how down you are, you take an active and immediate interest in life.
Fiat justitia, et ruat cælum
-- modified at 23:38 Thursday 1st December, 2005
|
|
|
|
|
The xsl:sort element is used to define a sort key. This sort key determines the order in which selected nodes are processed by the xsl:for-each or xsl:apply-templates elements.
Syntax: <xsl:sort
case-order="upper-first" | "lower-first"
data-type="number" "qname" | "text"
lang="language-code"
order="ascending" | " descending"
select="expression"
>
</xsl:sort>
Sushant Mathur
Ocwen Financial Sol. Pvt. Ltd,
Bangalore,
INDIA.
|
|
|
|
|
I understand that I can use xsl to sort the individual elements if I wanted to create the xsl template by hand. I want to take an XML file, perform sorting on it, and export the sorted contents.
.............................
There's nothing like the sound of incoming rifle and mortar rounds to cure the blues. No matter how down you are, you take an active and immediate interest in life.
Fiat justitia, et ruat cælum
|
|
|
|
|
It could be much more easy if you go ahead with XSL sort .
|
|
|
|
|
Two questions
I have an xml file which does not contain end tags, Any idea how i can append end tags keeping the parent child relation intact. Sample tags listed below
<parent1>
<tag1></>
<tag2></>
<tag3>
<tag4></>
</>
</>
Anyone has an FPML import app?
|
|
|
|
|
I don't know any FPML import apps.
However, I can answer a question for you: If you have a file with tags that don't contain end tags, then you don't have an XML file.
If you have a half-baked, XML-like file with something like what you have listed in your post, <parent1><tag1></><tag2></>... , then you can do the following:
Initialize a stack
Open an input stream from your file
Open an output stream for the result
While you have not reached the end of the input stream
Read a character
Write the character to the output stream
If the character is "<"
Read the next character
If the character is a letter, then
Keep reading until you reach a ">", saving the characters
Push that string onto a stack
Write that string to the output stream
Else if the character is a "/"
Write a "/" to the output stream
Pop the top string from your stack and write it to the output stream
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
I need to use XML with BORLAND C++. How to read data? How to insert data? Please, help me!!!
|
|
|
|
|
|
I need to read a XML file into C#, do som processing on the data and then write it out in a flat text file.
An example of the xml file can be found here[^]
I have played around with XmlTextReader but can't get my head around as to how i get the data into C# in a way so i can use it
|
|
|
|
|
XmlTextReader won't help you processing the Document. Try XmlDocument, or XmlDataDocument.
XmlDocument x = new XmlDocument();
x.Load(@"myfilepath");
then you can use XPath to find nodes, change them, etc.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Could DataSet.ReadXml() be of any use to you?
---
http://sprdsoft.cmar-net.org - We Sprd You Softly
Our site features contents and several images. All of this is very weird.
In the end, war is not about who's right, it's about who's left.
|
|
|
|
|
i got it working using XmlDocument and XPath.
Tnx!
|
|
|
|
|
i am having a XML file and i have to apply differenr stuff on two different tags means if tag1 exists then add
<tag name="1"></tag>
and if tag2 exist then <tag name="2"></tag>
I have tried using
<xsl:if test="tag1">
<tag name="1"></tag>
</xsl:if>
but its not working,plz tell me other way to do this.
Sushant Mathur
Ocwen Financial Sol. Pvt. Ltd,
Bangalore,
INDIA.
-- modified at 8:06 Wednesday 23rd November, 2005
|
|
|
|
|
this should work. Maybe the problem is somewhere else (not test the right node, not the right namespace, etc..)
alternativaly, you can replace this with a matching structure
...
...
<xsl:apply-templates>
...
...
</xsl:template>
<xsl:template match="tag1">
<tag name="1"></tag>
</xsl:template>
<xsl:template match="tag2">
<tag name="2"></tag>
</xsl:template>
Denevers
-- modified at 15:42 Saturday 10th December, 2005
|
|
|
|
|
Does anyone know of a component for .NET that will produce an XML Signature as per the W3C standards: http://www.w3.org/TR/xmldsig-core/[^]
Also, it must be able to run on the .NET Compact Framework.
My: Blog | Photos
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucious
|
|
|
|
|
I have an xml file like this:
======================= a.xml====================
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="a.xsl"?>
<cricket>
<player id="1" age="23">
<name prefix="mr">Hung</name>
<catches>250</catches>
<no_100>23</no_100>
<no_50>34</no_50>
</player>
<player id="2" age="24">
<name prefix="mr">Thanh</name>
<catches>234</catches>
<no_100>13</no_100>
<no_50>54</no_50>
</player>
<player id="3" age="25">
<name prefix="ms">Tuan</name>
<catches>432</catches>
<no_100>11</no_100>
<no_50>33</no_50>
</player>
<player id="4" age="20">
<name prefix="mr">Hoa</name>
<catches>333</catches>
<no_100>50</no_100>
<no_50>20</no_50>
</player>
<player id="5" age="21">
<name prefix="ms">Dzuy</name>
<catches>32</catches>
<no_100>34</no_100>
<no_50>26</no_50>
</player>
</cricket>
=================================================
and an xsl to display this xml file like this:
========================== a.xsl =====================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<head>
<title>Test</title>
</head>
<body>
<table>
<tr>
<th>Player</th>
<th>No. of 50's</th>
<th>No. of 100's</th>
<th>No. of catches</th>
</tr>
<xsl:for-each select="cricket/player" order-by="name">
<tr>
<td><xsl:value-of select="name" /></td>
<td><xsl:value-of select="no_50" /></td>
<td><xsl:value-of select="no_100" /></td>
<td><xsl:value-of select="catches" /></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
=======================================================
The output will be like this:
Player 50's 100's Catches
Dzuy 26 34 32
Hoa 20 50 333
Hung 34 23 250
Thanh 54 13 234
Tuan 33 11 432
Now I would like to display the information of players include the id of them, like this:
ID Player 50's 100's Catches
1 Dzuy 26 34 32
2 Hoa 20 50 333
3 Hung 34 23 250
4 Thanh 54 13 234
5 Tuan 33 11 432
but I dont know how to read the attributes from player element. Any suggestion?
If I want to sort or use if statement depend on attribute (age>23 or id must be under 4 ect...), how to do that?
And how can I read attributes of elements that is read inside for-each statement, for example, attribute prefix of name element
If I want to show total number of players, how to do that?
|
|
|
|
|
<xsl:for-each select="cricket/player" order-by="name">
<tr>
<td><xsl:value-of select="@id" /></td>
.....
</tr>
and by using
<xsl:variable name="get-age" select="@age" />
and then apply IF statements on it.
for more info on using attributes go to this link:
http://www.xml.com/pub/a/2002/04/03/attributes.html
Sushant Mathur
Ocwen Financial Sol. Pvt. Ltd,
Bangalore,
INDIA.
|
|
|
|
|
Dear friends,
I want to bouild a dyanamically changing menu .Please help me on this matter. Help me please. I need a detailed complete prototype for it .
Please reply asap.
Thank you and regards
shaji
|
|
|
|