Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 25 of 33
Search took 0.02 seconds.
Search: Posts Made By: geek.shrek
Forum: XSLT February 22nd, 2011, 06:24 PM
Replies: 1
Views: 2,506
Posted By geek.shrek
Question Transform java object into xml with xslt

Hi,

I wonder if it's possible to transform java object into an xml with xslt.

I have this class

public class Customer
{
private String name;
private String address;
Forum: XSLT January 10th, 2010, 12:27 PM
Replies: 4
Views: 3,262
Posted By geek.shrek
Thanks :) I'm using java to transform the XSLT....

Thanks :)

I'm using java to transform the XSLT. Can XSLT return the transformed result back into Java?
Forum: XSLT January 10th, 2010, 11:31 AM
Replies: 4
Views: 3,262
Posted By geek.shrek
Question How to append node to an existing file

Hi,

I'm using XSLT 2.0.

I would like to append a node to an existing file, but I do not want to create another new file.

for example,
FILE1

<?xml version="1.0" encoding="UTF-8"?>
Forum: XSLT January 9th, 2010, 01:09 PM
Replies: 6
Views: 1,086
Posted By geek.shrek
I'm trying to copy the node without the...

I'm trying to copy the node without the start_writing attribute.

I've tried your suggestion to put '@' in front of start_writing. but the result is still the same.

I've also tried

<xsl:template...
Forum: XSLT January 9th, 2010, 12:03 PM
Replies: 6
Views: 1,086
Posted By geek.shrek
Question How to copy elements to new file

Thanks for the improvement tips :)

It works, but how can I change the position attribute accordingly without having to copy the attribute one by one?

I also tried to remove the start_writing...
Forum: XSLT January 7th, 2010, 06:32 AM
Replies: 6
Views: 1,086
Posted By geek.shrek
Question How to copy elements to new file

Hi,

I'm using XSLT 2.0 with saxon9.
I would like to seperate my current xml into a few seperate files according to certain element.

Here's my input

<?xml version="1.0" encoding="UTF-8"?>
<Book...
Forum: XSLT January 5th, 2010, 06:53 PM
Replies: 2
Views: 5,827
Posted By geek.shrek
Thank you very much :). It works.

Thank you very much :). It works.
Forum: XSLT January 5th, 2010, 06:09 PM
Replies: 2
Views: 5,827
Posted By geek.shrek
Question XPath multiple conditional statement

Hi,

I'm using xpath 2.0 and trying to use a conditional statement. But it seems like the conditional only gone through
[CODE]
if conditionA then result
else if conditionB then result
else...
Forum: XSLT December 10th, 2009, 11:01 PM
Replies: 6
Views: 728
Posted By geek.shrek
It's impossible isn't it? :(

It's impossible isn't it? :(
Forum: XSLT December 9th, 2009, 10:32 AM
Replies: 6
Views: 728
Posted By geek.shrek
Question drawing time limit

I'm sorry, I probably didn't explain properly.

The "number" attribute is not an event number position. For example, if the type of "kids party" then I want to create another element "comment", just...
Forum: XSLT December 7th, 2009, 06:34 PM
Replies: 6
Views: 728
Posted By geek.shrek
Unhappy drawing time limit

Thanks Mr Kay, I really appreciate your help.

I've been trying to reassamble your xslt with my xslt for days, but I still have no luck.
The reason that I have 2 pass xslt is related to...
Forum: XSLT December 2nd, 2009, 12:00 AM
Replies: 6
Views: 728
Posted By geek.shrek
Question multiple xslt help

Hi,

I have a multiple xslt process.

I would like to divide a group, for example the party that start between 20:00:00 until 24:00:00 will call as "Group B" and I would like to record the "number"...
Forum: XSLT December 1st, 2009, 04:52 PM
Replies: 10
Views: 6,799
Posted By geek.shrek
Thanks Michael, You were right, the error that I...

Thanks Michael,

You were right, the error that I get is because of the processor. I'm using Altova to debug the xslt.
I tested with my java program with Saxon processor and it works. :)

Thanks for...
Forum: XSLT November 30th, 2009, 06:14 PM
Replies: 10
Views: 6,799
Posted By geek.shrek
Here is my data <mydatacollection> ...

Here is my data


<mydatacollection>
<data_header>
<start>2010-02-11T00:00:00</start>
<data_header>
<data id="ABC123">
<duration>00:01:00:00</duration>
</data>
Forum: XSLT November 30th, 2009, 06:01 PM
Replies: 10
Views: 6,799
Posted By geek.shrek
Yes, I missed that detail that xpath start the...

Yes, I missed that detail that xpath start the character from 1. Thanks for that.

but It still show the same error.

My duration is for example "00:40:00:00", so I was thinking to remove the last...
Forum: XSLT November 30th, 2009, 04:55 PM
Replies: 10
Views: 6,799
Posted By geek.shrek
<xsl:element name="dur"> <xsl:variable...

<xsl:element name="dur">
<xsl:variable name="dur" select="fn:substring(duration,0,9)"/>
<xsl:value-of select="xs:time($dur) - xs:time('00:00:00')"></xsl:value-of>
</xsl:element>


but...
Forum: XSLT November 30th, 2009, 10:38 AM
Replies: 10
Views: 6,799
Posted By geek.shrek
Thanks for the tips :) Unfortunately I can't...

Thanks for the tips :)
Unfortunately I can't change the duration format, it has to be "00:00:00:00"
So I will try to truncate the last ":00"
Forum: XSLT November 30th, 2009, 12:22 AM
Replies: 10
Views: 6,799
Posted By geek.shrek
Add DateTime and duration confused

Hi,

I'm using xslt 2.0

How can I add dateTime and duration?
I would like to check if the data start for example at 15:00:00.
my idea was to add the start and data duration.

my xml data
Forum: XSLT September 23rd, 2009, 12:06 AM
Replies: 8
Views: 11,983
Posted By geek.shrek
Question Thanks Mr Kay, I'm trying to use two-pass...

Thanks Mr Kay,

I'm trying to use two-pass processing. But I am confused how can I copy the temporary tree and insert an attribute.

phase1.xslt

<xsl:template match="/" mode="phase1">
...
Forum: XSLT September 21st, 2009, 03:52 PM
Replies: 8
Views: 11,983
Posted By geek.shrek
Question Hi, Sorry for being so unclear, here I try again...

Hi,

Sorry for being so unclear, here I try again [:o]

I'm using Java to transform my xslt.

my input xml

<materials>
<material id="A">
Forum: XSLT September 20th, 2009, 06:56 PM
Replies: 8
Views: 11,983
Posted By geek.shrek
Hi, Thanks for the reply. the number "1","2",...

Hi,

Thanks for the reply.
the number "1","2", etc is not from the input.
I want to generate the number as a sequence execution.

Sorry for not being details.
What I'm actually want to do is have a...
Forum: XSLT September 13th, 2009, 06:18 PM
Replies: 8
Views: 11,983
Posted By geek.shrek
Question how to increment global variable

Hi,

I'm using XSLT 2.0

I would like to have a value that increment every now and then.

For example:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
...
Forum: XSLT September 13th, 2009, 06:12 PM
Replies: 1
Views: 1,533
Posted By geek.shrek
how to increment global variable

Hi,

I'm using XSLT 2.0

I would like to have a value that increment every now and then.

For example:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
...
Forum: Perl August 31st, 2009, 11:27 PM
Replies: 1
Views: 1,735
Posted By geek.shrek
Question Regular Expression Error

Hi,

I'm trying to split a line if it's match with my pattern.
I would like to get [user:myuser][filename:test.txt][status:pending][here something else] from a line.

eg. $line is

[localhost...
Forum: Perl August 31st, 2009, 12:47 AM
Replies: 1
Views: 1,189
Posted By geek.shrek
Question XML::Simple is this possible

Hi,

I'm a beginner in perl.
I'm trying to get an element value in xml.
I'm using XML::Simple.

BODY{font:x-small 'Verdana';margin-right:1.5em} .c{cursor:hand} .b{color:red;font-family:'Courier...
Showing results 1 to 25 of 33

 


All times are GMT -4. The time now is 05:48 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.