Hi all,
Simple question: Why is a PHP function called from an XSL Stylesheet just returning the last argument passed:
foo.xsl:
<xsl:template match="/">
<xsl:value-of select="php:function('date','c')" />
</xsl:template>
PHP:
...
$xsl = new XSLTProcessor();
$xsl->registerPHPFunctions();
$xsl->importStylesheet($fooStylesheet);
e...
So, I'm using the XSLT plugin for JQuery, and here's my code:
function AddPlotcardEventHandlers(){
// some code
}
function reportError(exception){
alert(exception.constructor.name + " Exception: " + ((exception.name) ? exception.name : "[unknown name]") + " - " + exception.message);
}
function GetPlotcards(){
$("#conten...
Please explain what is the use of @ symbol in XSLT with example.
Cheers!
Lokesh Yadav
...
Is there any limit for XML size for which XSLT is applied by XslCompiledTransform in .NET (3.5)? Also, is there any limitation for a length of parameteres passed to XSLT?
UPDATE: I have ment not the amount of parameters, but the length of a string, which is passed as a parameter and length of an XML text, to which XSLT is applied.
...
How can i find, with XSLT, the word before and after another know word in a text node?
...
Hi!
I have this XSLT document :
<xsl:stylesheet version="1.0" xmlns:mstns="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0"...
Hello Everyone,
I have UI which provide the facility to create own format by using drag and drop utility. I have also xml file which contains the data. Now task is how to automatically generate the .xsl file of the dynamically designed format for the data stored in xml form.
If you have any idea about the solution of the above problem....
Hi,
I have a sample xml as;
<?xml version="1.0" encoding="iso-8859-9"?>
<DropDownControl id="dd1" name="ShowValues" choices="choice1,choice2,choice3,choice4">
</DropDownControl >
I need to create a UI representation of this XML using XSL. I want to fill the drop down list with values specified in choices attribute.
Does anyone ...
Hi
I am quite weak at XSLT so this might seem obvious. Here is some sample XML
<term>
<name>cholecystocolonic fistula</name>
<definition>blah blah</definition>
<reference>cholecystocolostomy</reference>
</term>
And here is the XSLT I wrote a while ago to process it
<xsl:template name="term">
{
"dictitle": "<xsl:v...
I have the following PHP code, but it's not working. I don't see any errors, but maybe I'm just blind. I'm running this on PHP 5.3.1.
<?php
$xsl_string = <<<HEREDOC
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsl="http://www.w3.org/1999/X...
I've got a system that allows the user the option of providing their own XSLT to apply to some data that's been retrieved, as a means of specifying how that data should be presented. However, if the user includes code in the XSLT equivalent to:
<xsl:template match="/">
<xsl:element name="data">
<xsl:apply-templates select="." />
...
I have a bunch of XML files with a fixed, country-based naming schema: report_en.xml, report_de.xml, report_fr.xml, etc. Now I want to write an XSLT style sheet that reads each of these files via the document() XPath function, extracts some values and generates one XML files with a summary. My question is: How can I iterate over the sour...
hi!
I am new to XPath, and from what I have read in some tutorials about axes, I am still left wondering how to implement them. They aren't quite behaving as I had expected. I am particularly interested in using ancestor and descendant axes.
I have the following XML structure:
<file>
<criteria>
<root>ROOT</root>
<...
I need an XSL solution to replace XML nodes with new nodes.
Say I have the following existing XML structure:
<root>
<criteria>
<criterion>AAA</criterion>
</criteria>
</root>
And I want to replace the one criterion node with:
<criterion>BBB</criterion>
<criterion>CCC</criterion>
<criterion>DDD</criterion>
So that th...
Hi,
i have added the below xsl:output tag in xslt
<xsl:output method="html" indent="yes" encoding="utf-8" doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN" ></xsl:output>
as a result i get the below doctype tag in the html output-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
how can i mention the url in the do...
Hi! I'm trying to make an xslt template to generate pdf.
How to create a template that can fill data in such way:
http://web13.twitpic.com/img/109586649-2ff71ad3e1ee483df6b9be14dcb3804a.4c0632a8-scaled.png
...
I want to create GUI components from XSD files. The generated GUIs should be used for concrete xml instances of the corresponding schema with databinding to "interesting" elements or attributes content.
I have considered these solutions:
jaxfront. (commercial tool). This does not generate source code. This is important for me because I...
Hi.
I have input XML which I have to reorganize into another XML using XSLT.
Here is the example of input file:
<?xml version="1.0" encoding="UTF-8"?>
<Report asOfDate="2010-03-31 00:00:00"
<Record>
<FieldValue fieldName="rapportage_nihil" fieldValue="false" fieldValueIsNull="false" fieldValueNatural="false"/>
<FieldValue fiel...
Hi,
I have a xml as below that I'd like to copy n times while incrementing one of its element and one of its attribute.
XML input:
<Person position=1>
<name>John</name>
<number>1</number>
<number>1</number>
</Person>
and I'd like something like below with the number of increment to be a variable.
XML output:
<Person position=1>
<na...
I have just recently (like 2 days) started using XSLT documents with XML. I understand the basics and am able to generate a formatted document using an .XML document that references a separate .XSLT document.
My question, as in the subject, is "Is it possible to create a SINGLE, composite document that contains both the XML data and XS...