xslt

Convert XHTML to Word ML

What is the best way to convert word HTML to word XML? I cannot buy a tool so need something preferably XSLT which is free and works suitably with basic formatting like paragraphs, lists, bold and italic. ...

XSL(like) declarative language as MVC view over strongtyped model?

As a huge XSL fan, I am very happy to use xsl as the view in our proprietary MVC framework on ASP.NET. Objects in the model are serialized under the hood using .NET's xml serializer, and we use quite atomic xsl templates to declare how each object or property should transform. For example: <xsl:template match="/Article"> <html> ...

I don't get XSL processing instructions!

What kind of scenarios can XSL processing instructions be used or applied? When is it good or bad to use them? Clean slate here, I don't have a good handle on this particular element. Example from w3schools: <xsl:processing-instruction name="process-name"> <!-- Content:template --> </xsl:processing-instruction> ...

Is there something like <xsl:url-param name="color" />?

If I send this request to a page: http://www.server.com/show.xml?color=red&amp;number=two Can I do something like this?: I like the color <xsl:url-param name="color" /> and the number <xsl:url-param name="number" />. If you need clarification of the question, lemme know Thanks for any answers, Chrelad ...

Building a multi-level menu for umbraco using XSLT

Hi. I'm trying to build a multi-level dropdrown CSS menu for a website I'm doing on the umbraco content management system. I need to build it to have the following structure: <ul id="nav"> <li><a href="..">Page #1</a></li> <li> <a href="..">Page #2</a> <ul> <li><a href="..">Subpage #1</a></li> <li><a href="..">...

Looking for an XSLT community

I do a lot of XSLT programming. I also do Java, PL/SQL, JavaScript, and a few others. I can easily find communities of Java and JavaScript programmers via the web. PL/SQL is a little more difficult, but between OTN and AskTom, I do pretty well. But XSLT seems to be neglected to me. Where do you go for XSLT? I know about W3Schools, ...

Does XQuery (or XPath) have equivalents to Update, Insert, and Delete as well as Select?

I know how to find what I need from XML using XPath. The syntax takes a little getting used to, but it is quite powerful. I'm interested in learning XQuery also, but the SQL like syntax seems awkward. Even so, if it can provide not just a select equivalent, but also update, insert, and delete as SQL does, I will forgive all awkwardnes...

Transforming flat file to XML using XSLT-like technology

I'm designing a system which is receiving data from a number of partners in the form of CSV files. The files may differ in the number and ordering of columns. For the most part, I will want to choose a subset of the columns, maybe reorder them, and hand them off to a parser. I would obviously prefer to be able to transform the incoming d...

StackOverflowException loading XsltCompiledTransform

Hi, i have some big xslt crashing iis (StackOverflowException) when loading an XslCompiledTransform while the old (deprecated) XslTransform works fine. Is there some known issue with big templates? Strangely enough, the same XslCompiledTransform loads successfully in a win32 application. ...

How to get position of element using xslt.

How can I retrieve the position of the current Para? <xsl:template match="Para"> <xsl:variable name="PositionInDocument" select="What do I do here?" /> </xsl:template> This is the xml document: <QuestionStem>Question </QuestionStem> <Para>This is my paragraph question.</Para> <Para>Thisis another para for question.</Para> <AnswerLis...

How do I select the position of a following sibling.

I need to select the position of a following sibling via XSL. This is not working: <xsl:variable name="nextAnswerListItemPos" select="following-sibling::*[local-name() = 'AnswerListItem'][position()]" /> ...

How do I tell if a variable in xslt is greater than another.

Each of these variables has an integer value. But this syntax is not valid for some reason: <xsl:when test="$nextAnswerListItemPos < $nextQuestionStemPos" > ...

Set a variable to the smaller of two other variables in XSLT.

When I try to use the code below I get a duplicate variable error because variables are immutable. How do I set the smaller of the two variables ($nextSubPartPos,$nextQuestionStemPos) as my new variable ($nextQuestionPos)? <xsl:variable name="nextQuestionPos"/> <xsl:choose> <xsl:when test="$nextSubPartPos &lt; $nextQuestionStem...

Can you put two conditions in an xslt test attribute?

Is this right for When 4 < 5 and 1 < 2 ? <xsl:when test="4 &lt; 5 AND 1 &lt; 2" > <!-- do something --> </xsl:when> ...

How to create an element without hardcoding the name. XSLT

I tried this but it does not seem to be valid syntax. <xsl:element name="$myElementName"></xsl:element> ...

Generating SQL using XML and XSLT

I have an XML definition that contains an element with child elements. For example: <a> <b> <c>C</c> <d>D</d> </b> </a> I have an XSLT with an output of text. For example: <xsl...> <xsl:output method="text" indent="yes"/> <xsl:template match="/"> <xsl:copy-of select="/a/b" /> ... I want to copy the entire b element ...

ASP.NET - controls generated by xslt transformation

hi! i'm generating controls dynamically on my asp.net page by xslt transformation from an xml file. i will need to reference these controls from code behind later. i would like to add these references to the list/hashtable/whatever during creation (in xslt file i suppose) so that i could reach them later and i have no idea how to do this...

Rss question, replacing items

Hi, i have a rss source: http://feedity.com/rss.aspx/mr1-kossuth-hu/VVdXUlY <item> <title>2008. november 23.</title> <link>http://www.mr1-kossuth.hu/m3u/0039c36f_3003051.m3u&lt;/link&gt; <description>........</description> <pubDate>Wed, 26 Nov 2008 00:00:00 GMT</pubDate> </item> from this, i want to creat...

How to remove elements from xml using xslt with stylesheet and xsltproc?

I have a lot of XML files which have something of the form: ...

LINQ or XSLT to turn one Element into another in Visual Basic 9

Short version: Could anyone suggest or provide a sample in LINQ to XML for VB, or in an XSLT of how to change one XML element into another (without hardcoding an element-by-element copy of all the unchanged elements)? Background: I have an XML file, that I think is properly formed, that contains a root entry that is <collection> and ...