HI,
I want to use FOP to prepare a XML document for printing (ps/pdf).
Is it possible to send parameters to FOP to do conditional formating as exist in xsl processors
XSL:
<xsl:param name="isDuplicate">no</xsl:param>
....
<xsl:if test="$isDuplicate='yes'">
<h2 align="center">Copy</h2>
</xsl:if>
....
...
hi friends,
How create XML from XML using XSL ?
I try like this.. but i not get a result
Test.xml
<Address>
<name> Alex</name>
<lastname>Mathew</lastname>
</Address>
Test.xsl
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
...
I'll spare you the details because they would be needlessly confusing. Long story short, I'm using XSLT 1.0 to generate XSL documents, I'm trying to compare a variable to a literal string, and that string may contain quotes and apostrophes.
For the sake of simplicity, let's say that this literal is composed of two characters: a quote fo...
Hi Friends,
test.xml
<ServiceHotel>
<AvailableRoom>
<HotelOccupancy>
<RoomCount>1</RoomCount>
<Occupancy>
<AdultCount>2</AdultCount>
<ChildCount>1</ChildCount>
</Occupancy>
</HotelOccupancy>
<HotelRoom>
<Board>AFULL BOARD</Board>
<RoomType>DOUBLE / TWIN STANDARD</RoomType>
...
Background: We've created a client portal that selects desired data points from our database and outputs them as XML. The client has provided us with their desired format in the form of an XSLT stylesheet. So our deliverable to them is preferably the most user-friendly format possible, preferably a PDF. Our service is in Perl, so we've ...
Hi i want to conver a string value in xslt to a integer value.I am using xslt 1.0 so i can't use those functions supported in xslt 2.0 .
Please help .
...
I need to render a specified number of elements from an XML source, where the elements "DueDate" is not exeeded. Here is an example of the xml:
<Items>
<Item>
<Title>Title 1</Title>
<DueDate>01-02-2008</DueDate>
</Item>
<Item>
<Title>Title 2</Title>
<DueDate>01-02-2009</DueDate>
</Item>
<Item>
<Title>Title ...
How do I remove non-alphanumeric characters from a string in XSL?
Thanks!
...
Why aren't more webpages written using XML with an XSLT stylesheet? For separating content from presentation, this combined with CSS would be even more powerful. Right now, for things like outputting a navigation menu, people often hand-copy the navmenu code from page to page or do something like
<?php include_once('myheader.inc'); ?>...
In other words, is there a faster, more concise way of writing the following code:
//Create an object for performing XSTL transformations
XslCompiledTransform xslt = new XslCompiledTransform();
xslt.Load(HttpContext.Current.Server.MapPath("/xslt/" + xsltfile.Value), new XsltSettings(true, false), new XmlUrlResolver());
//Create a XmlRe...
Hello,
I'm maintaining Cocoon 2.1 application and I faced serious problem with request parameters.
Consider following url:
http://myapp.com/somePage.html?param1=<expected_integer_value>&param2=<expected_integer_value>
Both param1 and param2 are directly passed into transformer as parameters (<map:parameter />) and th...
So,
I'm trying to get the content from a cell in an ODS spreadsheet.
I'm doing something like:
<xsl:value-of select="./table:table-cell[6]/text:p/text()" disable-output-escaping="yes"/>
The nasty point is that the content of my table-cell have many line breaks and my code can't get to the full text =/
I also tried many variations ...
I have a element in XML:
<duration>00:08:90</duration>.
I am using XSLT to create a XML with elements required for my system.
Firstly I want my XSLT to remove the colons to look like this: 000890
Then I want to do a if-test to check whether this number is less than (<) 001000
...
The answer to this may very well be no, as much searching has turned up nothing. I thought long ago I saw something like this, but it may all have been a mirage.
Basically, it's so atrociously awful writing xslt out by hand. It's not the functional paradigm that bothers me. What bothers me is the fact that it uses XML based syntax. I wo...
I'm trying to fully validate an xml file which may be published by a user before it's fully published and live - it's basically somewhat like a sitemap.xml and it absolutely can't be published without being error-proof ( yes, I do have my own custom dtd for it as well ).
I was also thinking of implementing a storage system so it would s...
Hi,
I'm pulling what's left of my hair out trying to get a simple external lookup working using Saxon 9.1.0.7.
I have a simple source file dummy.xml:
<something>
<monkey>
<genrecode>AAA</genrecode>
</monkey>
<monkey>
<genrecode>BBB</genrecode>
</monkey>
<monkey>
<genrecode>ZZZ</genrecode>
</monkey>
...
I have an XML file that looks like
<?xml version='1.0' encoding='UTF-8'?>
<root>
<node name="foo1" value="bar1" />
<node name="foo2" value="bar2" />
</root>
I have a method
String processBar(String bar)
and I want to end up with
<?xml version='1.0' encoding='UTF-8'?>
<root>
<node name="foo1" value="proc...
Need to add alternate digits in a number receiving from XML file using XSLT, for instance If I am receiving a 123456789, I need to calculate alternate digit sum from right most using XSLT function, can i have any suggestions on this ?
Thanks,
Laxmikanth.S
...
I'm trying to strip the namespace qualifiers from a document, while retaining the document namespace as the default:
<foo:doc xmlns:foo='somenamespace'>
<foo:bar />
</foo:doc>
To
<doc xmlns='somenamespace'>
<bar/>
</doc>
(I know, this is meaningless, but our client doesn't get XML and uses string comparisons to find informa...
Hey there,
My problem is to setup the Cocoon sitemap.xmap in a way, that it first makes a transformation of an XML file with XSL, which I can then use for my own transformation.
I have following files:
start.xml : Contains references of files which are put together applying combine_start.xsl
transform.xsl: This is my own XSL file whi...