xslt

Transform Xml using Xslt

Hello, I have the following XML: <?xml version="1.0" encoding="utf-8" ?> <ApplicationSettingCategories> <Category>Cat1</Category> <Category>Cat2</Category> <Category>Cat3</Category> <Category>Cat4</Category> <Category>Cat5</Category> <Category>Cat6</Category> </ApplicationSettingCategories> I am trying to bind this Xml to a Dr...

index in loop XSL

I have two nested loop in XSL like this, at this moment I use position() but it's not what I need. <xsl:for-each select="abc"> <xsl:for-each select="def"> I wanna my variable in here increasing fluently 1,2,3,4,5.....n not like 1,2,3,1,2,3 </xsl:for-each> </xsl:for-each> Can you give me some idea for this stub. Thank you very m...

XSLT Cache problems

I'm trying to install this PHP module from NYTimes (http://code.nytimes.com/projects/xslcache) I unfortunately am falling at the last hurdle. I've installed it, added to my php.ini, but I am getting this error when running in my PHP code. Fatal error: Class 'xsltCache' not found in... My php code is as described by the NYTimes websit...

XSLT; finding most frequent element value in a document

Apologies if this is a very simple question; I don't use XSLT very much and I can't find much advice on the web, as there is lots of pollution in search results! I have an XML document in the following form. Its main purpose is to be reformatted in a few ways by XSLT for display in a couple of different formats. <desk> <drawer> <co...

remove word proofing errors from WML and merge the nodes..

Hi, I am new to XML. I have a WML file.I need to remove the word proofing errors from the file and merge the split up nodes. For eg:The WML file(with word proofing errors on) is as follows:(I have removed few lines of code for convenience) <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?mso-application progid="Word.Document"?...

Firefox 3 and XML/XSLT

Firefox 3 and XML/XSLT I am relatively new to developing web apps with client-side processing in Firefox. I have a few straight-forward questions regarding the use of XML/XSLT in Firefox. I send an initial XML document with an XSLT reference to the browser. The browser successfully transforms the XML to XHTML using the referenced XSL...

Outputting SharePoint Hyperlink Column as URL

I have some document URLs stored in a Sharepoint publishing column. When I output the info into a HTML page using: <xsl:value-of select="@[ColumnName]" /> in ItemStyle.xml, I get [url], [document name] in the page. I would like to display this as a URL can anyone help with the XSL? ...

IDE for XSLT stylesheets

What is the best IDE for creating and debugging complex XSLT stylesheets? For debugging, the ability to set breakpoints and step through the source would be great. I am interested in all options both commercial and free. ...

XSL: Counting Previous Unique Siblings

OK, I want to apply a XSL style sheet that counts the previous unique "ROLE" nodes and spits out the following output format of @name the number of unique ROLE nodes prior to the current nodes. I've wasted several hours on what should be an easy thing to implement. I have tried to implement this in several ways including the Muenchian...

Does the Java URIResolver concept exist in C# and .NET?

In the Java XML transformation package, there is a concept known as a URIResolver, which is "An object that implements this interface that can be called by the processor to turn a URI used in document(), xsl:import, or xsl:include into a Source object." So, if your XSL has an import like this <xsl:import href="URI"/> This allows you...

Conditional breakpoint when debugging XSLT in Visual Studio

I found out that you can debug XSLT in Visual Studio, which is pretty cool, but how do you set a conditional breakpoint? For example, how would I break only if a certain variable is empty? ...

XSLT Grouping Siblings

I am trying to group sibling data in an XML file. Given : <?xml version="1.0" encoding="UTF-8"?> <data> <competition> <timeline>10:00</timeline> <fixture>team a v team b</fixture> <fixture>team c v team d</fixture> <timeline>12:00</timeline> <fixture>team e v team f</fixture> <timeline>16:00</timeline...

XSLT to transform a series of elements into a single list?

Given a source doc like so: <A> <B> <C>item1</C> </B> <B> <C>item2</C> </B> <B> <C>item3</C> </B> </A> What XSLT can I use to product something like this: <A> <B> <C>item1</C> <C>item2</C> <C>item3</C> </B> </A> I have tried a sheet with... <xsl:template match="B"> <xsl:choose> ...

XSLT element in HTML element leads to errors

Hi, how can i realize something like this: <img alt="logo" src="/Content/Images/Logos/<xsl:value-of select="/customer/country"/>.png" /> The XSLT processor throws an error because of the "<" - sign here... ...

How can I use the .NET 2.0 XSLT engine from a .NET 1.1 application?

I'm working on a .NET 1.1 assembly that does a number of huge XSL transforms. This is beginning to cause memory problems. I therefore want to use the XSLT engine in the .NET 2.0 framework, since I know it is much more efficient and less resource intensive. Note: Upgrading the .NET 1.1 assembly to .NET 2.0 is NOT an option at this time, d...

Edit column header of Sharepoint BDC webpart using XSLT

I would like to change database column names of a BDC list webpart using an XSL file. My SQL query is "Select BATCH_ID...", I want to change that column name "BATCH_ID" to "ID" using XSL. I also want to know how $ColName_0 is getting populated with the value 'BATCH_ID'? Inside the dvt.headerfield template it is sorting and adding sor...

Does anyone have a a browser XSLT comparison chart?

Hey, I'm about to start developing a web app and require the use of XSLT to transform DITA files to HTML. Is the XSLT specification adhered to with all browsers, or there any quirks (much like the HTML spec in IE)? If so, does anyone have any information regarding the "quirks"? Thanks, Simon ...

Extending Sharepoint XSL template

Thanks to this post I've come up with the following template:- <xsl:variable name="Doc"> <xsl:call-template name="OuterTemplate.GetTitle"> <xsl:with-param name="Title" select="@DocumentLink1"/> </xsl:call-template> </xsl:variable> <a href="{substring-before($Doc,',')}"> <xsl:value-of select="substring-after($Doc,',')" /> </a>...

XSL: Counting Previous Unique Siblings from child nodes

I want to apply a XSL style sheet that counts the previous unique "ROLE" nodes and spits out the following output format of ROLE/@name, PERM/@perfrom and the number of unique ROLE nodes prior to the current node. This is a continuation from this question but with a bit more complexity. I believe the Muenchian method is the best way to i...

XSLT 3-level grouping on attributes

OK, I KNOW that variations on this have been asked and answered; I've been reading them all day, but I'm still stuck. So, here goes: I need to create a summary list in HTML from some XML. Given this XML: <Root><!-- yes, I know I don't need a 'Root' element! Legacy code... --> <Plans> <Plan AreaID="1" UnitID="83"> <Part ID=...