want to make a comma-delimited string from a list of 3 possible attributes of an element.
I have found a thread here:
http://stackoverflow.com/questions/798269/xslt-concat-string-remove-last-comma
that describes how to build a comma-delimited string from elements. I want to do the same thing with a list of attributes.
From the followi...
I have published a layout in XSLT format with Filemaker. When a user access this page, he will be prompted for his login details. I want to display his login details after he logged in successfully. How do I accomplish this?
...
Hello All,
I am using an xslt to generate some xml. Is there any way to copy the o/p from 1 xslt and use that in main calling xslt ?
here is scenario:
1. There are 2 xslt's ABC.xslt and XYZ.xslt
2. Main Xslt is lets say ABC.xslt which will make a call to XYZ.xslt and copy its o/p to ABC.xslt using ?
Thanks in advance to all.
...
<xsl:template name="ClickPIB">
<xsl:param name="abc" />
<xsl:param name="xyz" />
<xsl:if test="string-length($abc) > 0">
<script type="text/javascript">
$(document).ready(function () {
$('#<xsl:value-of select="concat($abc, '_td')"/>').getXYZ("<xsl:value-of select="concat(substring-before($abc,'_'), '_landreover_', substri...
Hello,
I'm stuck with a string conversion to xs:date. I would really appreciate any help and tips!
I have a string that represents date in the format of "01 Jan 00", which I need to convert to xs:date, so that I can manipulate it further.
Is there a function or something already there so that I can convert my so ever difficult string ...
I have this as input called $material_price:
2.40
1000
0.60
They run through
<!-- setup currency rendering -->
<xsl:decimal-format name="dkk" decimal-separator="," grouping-separator="."/>
<xsl:value-of select="format-number($material_price, '#.###,00', 'dkk')"/>
Output is:
2,40
1.000,00
,60
How can I make changes to the xslt so...
Hi all,
I have to develop a forms-application with the following specs.
I have an XML file with data. I have to display this data within my application or by forms. The user must be able to view, edit, add, manipulate the data and save it to an XML file.
I can't use an application/web server, it must be an offline application and the d...
I have some JavaScript that needs to apply an xslt to the result of an ajax request. The xslt is defined in a separate file "transform.xslt" - whats the best way of including the xslt in my page?
Is it possible to use some sort of <link... element, or will I need to make a separate http request myself for the xslt?
...
This may not be a real XSLT question but more of an Umbraco question.
This function as written will output another format as expexted:
<xsl:value-of select="umbraco.library:FormatDateTime(data [@alias = 'kursusgangTilmeldingsfrist'], 'dd/MM/yyyy')"/>
When called with these three "second arguments" on the current date
'dd MM yyyy'
'd...
This is my first post. Please be gentle if in ignorance I violate accepted norms... I did spend significant time in the FAQs. ;-)
Until recently my knowledge of XSLT was enough for my simple, straightforward needs. But a more advanced requirement sent me to reference material when "just trying stuff" didn't work. It was actually ...
I have a data structure which looks something like:
<resultSet>
<result>
<numCorrect>1</numCorrect>
<truthCorrect>4</truthCorrect>
</result>
<result>
<numCorrect>2</numCorrect>
<truthCorrect>4</truthCorrect>
</result>
<result>
<numCorrect>3</numCorrect>
<truthCorrect>5</truthCorrect>
</result>
<resu...
M(model): HTML, V(view): CSS, C(Controller): JavaScript
Hi,
I'm maintaining a personal bookshelf (a list of books) in a simple static HTML document, ie:
<ul>
<li class="book">Kitting tips and tricks</li>
<li class="book">La Bonne Cuisine Of Madame E. Saint-Ange: The Essential Companion For Authentic French Cooking</li>
<li class...
I have already written an XSLT code to extract the numerical characters from the string ..
This is the test xml:
(looks Bit weird but I am expecting much from XSLT)
<xml>
<tag>10a08bOE9W234 W30D:S</tag>
<tag>10.233.23</tag>
</xml>
This is the XSLT code I am trying with:
<xsl:template match="tag">
<tag>
<xsl:value-of select="...
I've got an XSL template that outputs text as opposed to XML.
In this text, I need to include ASCII character 0x10 in certain position.
I understand this character is not allowed in an XML document, but I'm going to output text, so why am I not allowed to use it anyway?
I also understand it will not be possible to put this character li...
Dear all,
I was wondering if someone remembers how to write a shorter OR statements in XSLT. I'm sure there was a way but I can't remember.
So instead of
test="$var = 'text1' or $var = 'text2'"
I'd like to use a shorter version like test="$var =['text1','text2']" However, I can't remember or find the right shorthand syntax for such ...
I have xsl file while processing xml file some time i do need several xml file to be include, for that i use document() method, my problem is that all time all xml file which i include are not available online hence my transformation is stop due to file not found!!! does any body help me the best practice for this scenario.
Thanks in ad...
How does one select the first sibling of a xml node with all its child nodes and apply some transformations on it? So far I only succeeded in selected either the first sibling and only the first sibling (no child nodes that is) or everything following the xml node.
Say we have xhtml like this:
<div class="chapter">Chapter <span class="...
I am new to XSLT Transformation world. I'm using XSLT to create an HTML file. How can I get the output as string, so that I can save it to an HTML file?
Performing the transformation using below line:
objXtrans.Transform(objDoc, objArgLists, objXmlTxtWriter);
How can I convert objXmlTxtWriter to get the complete string generated via...
I'd like to add an element to a xml document and I'd like to pass as a parameter the path to the element.
sample.xml file:
<?xml version="1.0"?>
<stuff>
<element1>
<foo>2</foo>
<bar/>
</element1>
<element2>
<subelement/>
<bar/>
</element2>
<element1>
<foo/>
<bar/>
</element1>
</stuff>
Using:
xalan.exe -p my...
I want to use XSLT to transform a set of documents into one structure. I have the transformation working correctly to concatenate the documents. I don't know, however, whether the the documents have duplicate entries in them, which I will need to remove.
I need to know how to remove these duplicates (if they exist) by an id attribute. A...