Hello,
I've been struggling with some weird behavior of fop 0.95 (don't know if I'm doing
something wrong, or if there is a work around).
I have an auto generated XML as follows:
<projectteam>
<projectname>Report Generation</projectname>
<RoleTypes>
<dev/>
<qa/>
<doc/>
</RoleTypes>
<member>
<name>Jo...
What are the hidden features of XPath AND XSLT?
...
How can I find attribute values based on a regular expression of the attribute name in xslt? In this snippet, I am trying to match attributes like "url.title", or "page.title", etc... anything with ".title".
<attribute name="withRegexp">
<value-of select='matches(@*[name()], "\.title")'/>
</attribute>
That doesn't work, any ideas ...
I am new to working with XSLT and am trying to create a pivot table using the Muenchian Method (since it appear that IE still doesn't support XSLT 2.0 I think I'm stuck with this). I am able to get the desired grouping however I am trying to get the sum of an attribute for each group. To do the sum of the attribute can I use the aggreg...
Hi to every one. My problem is: I have an XML file where I want to remove some child elements without removing parents. Can anyone help me to get the result by using ASP.NET?
Here is my XML file:
<Jobs>
<Job>
<Title></Title>
<Summary</Summary>
<DateActive>9/28/2009</DateActive>
<DateExpires>10/28/2009</DateExpires>
...
At the end of the page, I dont want to have the label of 'examClin' isolated. So if ever, the label arrives at the end of the page, I need ONE and no more than one line of examClin to be attached with the @label of examClin... Or both elements should go to next page.
Am i clear enough?
different elements... we arrive at the end of...
Take this XSL:
<xsl:variable name="rowcount" select="count(../DBE:Object[@Class='A']/DBE:Attribute [@name='B']/DBE:Table/DBE:TableRow)"/>
No. of Rows: - <xsl:value-of select="$rowcount"/>
I get the output as
No. of Rows: - 10
Now how to write a loop in xsl to traverse each row till the 10th row?
I want to display all the ro...
I have a quite stupid question. How can I make sure that my XML mixed content node doesn't get mixed up? I have, say, an XML structure resembling this.
<root>
<book>
<title>Stuff</title>
<description> This book is <i>great</i> if you need to know about stuff.
I suggest <link ref="Things">this one</link> if you need ...
.NET 3.5 doesn't completely support XPATH 2.0 or XSLT 2.0, which is just too bad. Does anyone know if these two will be included and fully supported in any future .NET versions?
...
Hello,
I need to export DataSet result to Excel file (using dataset, XSLT transformation and XML generation => XML spreadsheet). That's work, but I'd like to protect this sheet. The reader can only make change in some dropdown, in some cell but other change are not allowed. The only changes allowed are some specific cells (value or drop...
Im using XSLT to return some values, output as XHTML. However I usually structre my XSL like this:
<div id="something">
call template=Something
</div>
The trouble is when the XML returned is empty it just outputs:
<div id="something">
Empty set.
And as you can imagine this screws up my page.
Is there any function i can use to de...
Hello all,
I'm having a hard time find an answer to the following question, which would seem pretty common, so I must be missing something fundamental. Could you please help me out?
Given the contrived XML schema, sample XML input, and sample XSLT below used to transform XML to HTML. How do I set attributes within tags? For example...
I'm trying to use an XSL file to transform an XML file into an XHTML file. How can I view the XHTML source that is output after the transformation. I'm currently viewing the results through Firefox, but all I see is the rendered version of the XHTML file. I want to see the source, but when I go to View->Page Source, all I see is the XML....
I'm using an XSL file to transform a XML file to a XHTML file. I am trying to create an element li and set the "style" attribute to the value "hello:"
<li><xsl:attribute name="style">hello</xsl:attribute></li>
I get:
<li style=""></li>
But was expecting to get:
<li style="hello"></li>
Anybody have any idea what's going on?
...
I am going to be performing an XSLT transformation, transforming XML to an HTML table. It's tabular data, so that's why I'm not using div's. ;)
Anyway, I need to repeat one part of the XSLT for the size of one of my collections. Here's a snippet of the code...
Dim styleSheet = <?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet ver...
Here is something that has always mystified me about XSLT:
In what order do the templates execute, and
When they execute, do they match on (a) the original source XML, or (b) the current output of the XSLT to that point?
Example:
<person>
<firstName>Deane</firstName>
<lastName>Barker</lastName>
</person>
Here is a fragment of ...
Consider this XML:
<people>
<person>
<firstName>Deane</firstName>
<lastName>Barker</lastName>
</person>
</people>
What if two XSLT templates match an element through different XPaths? I know that if the "match" element on two templates is identical (which should never happen, I don't think), the last template will fire.
...
I have several <xsl:for-each/> which run the one after the other. I would like, at the end, to do something if I did not pass in any of them. For only one for-each, I can manage to make a <xsl:choose/> with an appropriate test based on the selector in the for-each, but for a lot of them, it begins to be very ugly.
Has anyone a solution...
No doubt this will be something obvious, but the following code has 2 errors on the marked line:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:date="http://exslt.org/dates-and-times"
extension-element-prefixes="date">
<xsl:import href="date/date.xsl" />
<xsl:template match="//day">
...
I can't find a reason why the following does not work.
If I have a document that looks like
<mydocroot>
<request>
<key>Ham</key>
</request>
<node>
<data alias='Ham' id='27'>Some value</data>
<data alias='Eggs' id='14'>Greenish</data>
<data alias='Condiment' id='32'>Salt and pepper</data>
...
</node>
</mydocroot>
and an...