I have been reviewing and testing the code in thread695-824677 and have tested it with a page named test.jsp. When sending the info to test.jsp?filename=adam.xml it will ask me to save test.jsp and not adam.xml. Do anyone know of options to change what info is presented in the dialog box?
thx...
I and creating a online task list for work. Have everything working fine except when I display the results say on one user, I get he has done 12 tasks. (Meeting, Web, Course, Ticket, Ticket, Ticket, Web, Meeting, Meeting, Web, Course) each have a time amount for each task. But when I want it to...
I would like to count the # of instances of a string in a string to return a number. Is there a way to do this in XSL?
var adam=
adamsooleywasheretoaskaquestionaboutxmladamwouldlikearesponse
count(contains($var, "adam")
returns 2
In xsl i would like to create a variable
<xsl:variable name="adam" select="$adam, new"/>
this seems not to work for me. I am in a for-each loop and would like to keep adding the variable + text like in jsp when you can say
String a = "3";
a = a + "7";
a = a + "6";
a = a + "9"...
Have a xml doc like:
<home>
<tag>4</tag>
<tag>6</tag>
<tag>5</tag>
<tag>5</tag>
<tag>10</tag>
</home>
Is there a way to add the values in xsl to give me the total of tag? So it would output 30?
Adam
I am using DOM to read a xml file in JSP. I am using getElementsByTagName(). When I do this and want "a" I will get returned "This is a test" But I would like to read body and get all the elements, attributes and text. When I read "body" I get nothing returned. Anyone have any suggestions?
<art>...
I have a xml doc like:
<art>
<ele1/>
<ele2/>
<ele3/>
<ele4/>
<english>
<body><b color="red">This is a test</b></body>
</english>
</art>
I would like to read in the english tag into a string and keep all of the tags, elements and text. I am having problems. I can read in the <b> tag and all i...
I have a xml file like:
<article>
<name>test</name>
<english>
<hr />
<h2>What Others Say About Us</h2>
<p>Does the world know about us? Check out these places:</p>
</english>
<french>
<hr />
<h2>What Others Say About Us</h2>
<p>Does the world know about us? Check out these places:</p>...
I am having a problem.
Their are 2 servers on one physical box. A testing server (test.adam.ca) and a production server (www.adam.ca) my problem is when I include a xsl file into another xsl file i have to reference the full physical path to the file in order for the page to work. I do not want...
It their a easer way to test the position than:
test="position()=5 or position()=10 or position()=15 or position()=20 or position()=25 or position()=30 ect..."
I need to test for the fifth one.
Adam
Can I use a xsl if before the xsl:template?
Such as
<xsl:param name="$test"/>
<xsl:if test="$test = "new">
<xsl:include href="NEW-URL/text.xsl"/>
</xsl:if>
<xsl:if test="$test = "old">
<xsl:include href="OLD-URL/text.xsl"/>
</xsl:if>
<xsl:template match="/">
Other XSL code...
I would like to get the server address each time a page is loaded so I can test which path to include the xsl files from.
I have a jsp page that parses the xml and xsl files for output and can get the server address in jsp.
I have about 10 included xsl files in the first xsl file which loads...
I have 2 xml files.
1 with all my common tags in it for flow control
and 1 with data that the user inputs.
Is there a way in JSP or within the 2nd xml that I can merge the first into the 2nd xml file so it has the control tags from the first?
Can anyone help..Please
Adam Sooley
I have to XML files....
a.xml and common.xml
When I load a page I would like the elements from common.xml to be added to a.xml.
Commmon.xml has about 15 elements with common information to be used in a.xml, b.xml, c.xml etc...
Any help would be great.
I have 2 xml files and I would like them to be read into one xsl file at different locations. So I would first read in the first xml file info that switch to the 2nd xml file to display the info.
Any help is greatly needed.
Thanks..
Adam
I am passing a variable in a querry string like www.test.com/index.htm?adam=NOW
I have it so when you type in the form field it will turn it to uppercase. My problem is when someone types in NOW and presses the space bar after creating whitespace. This causes a + sign to be added to the end of...
I have many names in a xml doc and i would like to build the table with the ppl's names in it. I would like the table to start a new row after the 5 persons name is printed so if I got 15 names i would like there to be 3 rows. Does anyone know how to do this in xsl?
Any help would be great.
I have my xsl set up to read my xml docs to produce the page. The proble is that their are many different people in each xml doc. I want to place these ppl in a table with 5 columns and break after 5 and start a new row. I cant seem to get this to work it will just display all ppl in one row...
I want the xsl to get the class and color I want to use on each line but it is only using the class and color from the first <ln> in the XML. Do you know of any way that the xsl can use whatever class and color that is defined in the <ln> of the XML file. Please look below for an example of what...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.