Hi there
I have a questing about XSLT.
I am making a website on Sitecore CMS, and some of the pages have to show a list of articles. That's not a problem.
Every articlelist can be 'tagged' with one or more tags, and the same for every article. Let's say that I have an articlelist that have been tagged with 'Wordpress'. Then I only wan...
I’ve got some hierarchical XML like this:
<node text="a" value="1">
<node text="gga" value="5">
<node text="dh" value="9">
<node text="tyfg" value="4">
</node>
</node>
</node>
<node text="dfhgf" value="7">
<node text="fdsg" value="2">
</node>
</node>
</node>
The names of the elemen...
My XML looks like this
<page>
<orderhistory>
<order>
<ordernr>10610000000001</ordernr>
<orderrecord>
<productcategory>Something</productcategory>
</orderrecord>
<orderrecord>
<productcategory>Something</productcategory>
</orderrecord>
<orderrecord>
<pro...
I have an existing XSLT stylesheet that takes XML and produces nicely formatted XHTML. I want to make an XSL-FO version of this stylesheet to produce PDF via Apache FOP. What I want to know is this:
Are there any convenient to use xslt patterns I need to learn to do things like:
copying some nodes unaltered
copying most of a node, b...
I'm using XSLT to transform an XML document to text. The text nodes of the XML document have < characters in them, which of course bombs the transformation. Is there anyway to get an XSLT transformation to work with a < character in a text node? In this case, all such characters are followed by whitespace.
...
I'm trying to write an XSLT that will transform an XML document that I have to a CSV file. Here's a sample of the XML:
<?xml version="1.0" encoding="utf-8"?>
<Import>
<Users>
<User ID="user_1" EmailAddress="[email protected]">
<Contact FirstName="John" LastName="Doe" />
<Address Street1="808 El...
For example, I'm trying to pick out the value "Application Library" from the following XML - ie, the value under content-node/localedata/title, where localedata@locale = "en".
<content-node objectid="6_NO2UF4I1186E1026H4BLVI08F1">
<localedata locale="de">
<title>Anwendungsbibliothek</title>
</localedata>
...
In XSLT, is there a way to determine where you are in an XML document when processing an element?
Example: Given the following XML Doc Fragment...
<Doc>
<Ele1>
<Ele11>
<Ele111>
</Ele111>
</Ele11>
</Ele1>
<Ele2>
</Ele2>
</Doc>
In XSLT, if my context is the Element "Ele111", how can I get XSLT to output the ...
I have this xslt:
<xsl:template name="dumpDebugData">
<xsl:param name="elementToDump" />
<xsl:for-each select="$elementToDump/@*">
<xsl:text> </xsl:text> <!-- newline char -->
<xsl:value-of select="name()" /> : <xsl:value-of select="." />
</xsl:for-each>
</xsl:template>
i want to display every elemen...
Hi,
I am serching an XPath function that works like the XPath 2.0 fn:max function. A function that returns the maximum of several parameters.
After searching a lot I figured out this way:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:math="http://exslt.org/...
So, I have a requirement to hide a field in a Sharepoint custom list based on the creator of the item. I've gone through the steps outlined here and it works great for hiding the field based on permission level. However, I need to be able to show the field if the user has a certain permission level OR is the one who created the item in t...
I am thinking for a new approach to make small webapps using XML.
Here the the procedure to make it.
First of all design a DataBbase for Application. This database is the soul of your application. This database contain all the necessary data and values. Now when a user requests to this webapp, the server will execute a server side scrip...
Can any one suggest good XSLT with java tutorials?
...
I'm trying to figure out how to use the struts2 XSL ResultType. I just can't figure out how it is supposed to work and aside from the official documentation, I've found maybe two articles online that tried to explain it (unsuccessfully for me).
My understanding of how it works is I create an xsl stylesheet, then I have a struts action ...
Say I have an Xml fragment that I am walking through with XSL:
<Columns>
<Column width="100">
<Column width="50">
<Column width="75">
<Column width="33">
</Columns>
Basically what I want to do is, as I am walking through each node, I need to store a sum of the previous 'width' attributes to be used for the current Column n...
Hi there. I'm attempting to apply an XSL transform to an XML file inside an SSIS package XML Task.
All well and good, but unfortunately my XSL is slightly less "portable" than normal as I need to use the function node-set(). A simplified example of my XSL is:
<xsl:for-each select="msxsl:node-set($familyNames)/token">
<xsl:call-templa...
I need to display a two column list of items according to the following rules:
Container for the columns has fluid width
Width of both columns needs to be equal
Items are dynamically rendered and at least one will be displayed
Item ordering needs to flow down the left column first, then the right
Items need to line up evenly across the...
I know that XSLT itself has attribute-sets, but that forces me to use
<xsl:element name="fo:something">
every time I want to output an
<fo:something>
tag. Is there anything in the XSL-FO spec that would allow me to specify (let's say) a default set of attributes (margin, padding, etc.) for all Tables in the FO output?
Essentially...
Please review my code and give me your advise on this:
XML file: content.xml:
<content>
<page id="page-1">
<!-- ... -->
<block-center>
<block-center-row id="block-center-row-1">
<cd>
<title>Empire Burlesque</title>
<artist>Bob Dylan</artist>
<country>USA</country>
<company>Columbia</company>
<price>1...
Say I have a very simple XML with an empty tag 'B':
<Root>
<A>foo</A>
<B></B>
<C>bar</C>
</Root>
I'm currently using XSLT to remove a few tags, like 'C' for example:
<?xml version="1.0" ?>
<xsl:stylesheet version="2.0" xmlns="http://www.w3.org/1999/XSL/Transform" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:outpu...