Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Showing results 1 to 24 of 24
Search took 0.01 seconds.
Search: Posts Made By: MargateFan
Forum: XML September 10th, 2013, 06:26 AM
Replies: 2
Views: 937
Posted By MargateFan
Cheers Michael - stuck with 1.0 unfortunately.

Cheers Michael - stuck with 1.0 unfortunately.
Forum: XML September 10th, 2013, 04:07 AM
Replies: 2
Views: 937
Posted By MargateFan
XSD Optional Attributes

I've had a look around but can't find anything positive, so assuming it can't be done, but just in case!

I need an XSD to have pairs of attributes that one needs to be specified. For example the...
Forum: XSLT June 7th, 2011, 10:18 AM
Replies: 10
Views: 1,117
Posted By MargateFan
Sweeeeeeeeeeeeeeeeeeeeet! Martin & Sam,...

Sweeeeeeeeeeeeeeeeeeeeet!

Martin & Sam, many thanks. I was trying to be too clever (or so I thought)

Nigel
Forum: XSLT June 7th, 2011, 09:47 AM
Replies: 10
Views: 1,117
Posted By MargateFan
Hi Martin, In English, that hopefully makes...

Hi Martin,

In English, that hopefully makes sense, it's to do with flights within a trip. The first item is by default 1, the next will be 2 if the arrival of the previous one is the same as the...
Forum: XSLT June 7th, 2011, 08:21 AM
Replies: 10
Views: 1,117
Posted By MargateFan
Sorry, didn't even notice that - some copy& paste...

Sorry, didn't even notice that - some copy& paste "feature"


I’m trying to obtain the following output:

<?xml version="1.0" encoding="utf-8"?>
<TripXML...
Forum: XSLT June 7th, 2011, 08:02 AM
Replies: 10
Views: 1,117
Posted By MargateFan
I’m trying to obtain the following output: ...

I’m trying to obtain the following output:
<?xmlversion="1.0"encoding="utf-8"?>
<TripXMLxmlns:msxsl="urn:schemas-microsoft-com:xslt">
<TripSection>
...
Forum: XSLT June 7th, 2011, 06:55 AM
Replies: 10
Views: 1,117
Posted By MargateFan
Recursive Call Help

I’m trying to obtain the following output:

<?xmlversion="1.0"encoding="utf-8"?>
<TripXMLxmlns:msxsl="urn:schemas-microsoft-com:xslt">
<TripSection>...
Forum: XSLT February 28th, 2008, 12:58 PM
Replies: 2
Views: 681
Posted By MargateFan
Contains Function

I am trying to do a basic e-mail address validation. I've done:

<xsl:if test="contains(mailaddress, '@') and contains(mailaddress, '.')">

which has cut out some of the rubbish.

firstly can...
Forum: XSLT August 30th, 2006, 07:42 AM
Replies: 3
Views: 983
Posted By MargateFan
Cheers Micheal & Joe - it's working sound as a...

Cheers Micheal & Joe - it's working sound as a pound. I'd just changed it to number(substring(DateOfTravel, 6, 2)) when Joe's relpy came in.
Forum: XSLT August 30th, 2006, 06:48 AM
Replies: 3
Views: 983
Posted By MargateFan
Date Formatting

I'm trying to re-format a date and it's starting to drive me insane.
I've got the following XML tag:
<DateOfTravel>2006-08-29T00:00:00</DateOfTravel>
& need to convert it to:
<DepartureDate>29...
Forum: XSLT June 14th, 2006, 05:28 AM
Replies: 2
Views: 929
Posted By MargateFan
Many thanks (again) Michael

Many thanks (again) Michael
Forum: XSLT June 14th, 2006, 04:37 AM
Replies: 2
Views: 929
Posted By MargateFan
Include & Output (possibly) Help

I've tried to be fancy (probably my downfall !) and include some vb scripts to give me a day of the week, which seem to work perfectly, but appears to show additional data after labels.

This is...
Forum: XSLT May 22nd, 2006, 05:10 AM
Replies: 2
Views: 884
Posted By MargateFan
Thanks Michael - there are some handy things in...

Thanks Michael - there are some handy things in there.
Forum: XSLT May 22nd, 2006, 03:39 AM
Replies: 2
Views: 884
Posted By MargateFan
Delimited data

I've spent the last couple of working days getting nowhere with this so I hope someone can help. I'm trying to extract data from a delimited string i.e.
...
Forum: XSLT May 11th, 2006, 10:48 AM
Replies: 2
Views: 764
Posted By MargateFan
For-Each processing problem

Is there a way of "breaking out" of a for-each loop (some sort of Leave instruction)?

I'm processing a set of nodes and doing a test to only pickup a certain condition, however once this...
Forum: XSLT May 5th, 2006, 04:54 AM
Replies: 4
Views: 1,142
Posted By MargateFan
Just in case anyone is interested/cares, I've...

Just in case anyone is interested/cares, I've modified the code slightly to look for the last x characters instead of using "contains" (cuts doen the lines of code):


<xsl:variable name="len"...
Forum: XSLT May 4th, 2006, 02:52 AM
Replies: 2
Views: 975
Posted By MargateFan
COOL ! Many thanks vakorde :)

COOL !

Many thanks vakorde

:)
Forum: XSLT May 3rd, 2006, 11:09 AM
Replies: 2
Views: 975
Posted By MargateFan
Recursive Function

My input XML has dates in the format yyyymmdd (20060503) & my target XML output needs dates in the format dd mmmmm yyyy (3 May 2006). I've used the following to re-format:

<xsl:choose>...
Forum: XSLT April 28th, 2006, 08:22 AM
Replies: 4
Views: 1,142
Posted By MargateFan
Brilliant, works a treat. Many thanks. ...

Brilliant, works a treat. Many thanks.

There might be a few problems with titles such as LORD but they are the minority so I'll choose to live with these.

This is all travel related and that's...
Forum: XSLT April 27th, 2006, 06:07 AM
Replies: 4
Views: 1,142
Posted By MargateFan
String formatting

Bit by bit I think I getting to grips with this. My next problem/issue is I'm trying to un-pack peoples names into Title, first name & last name. The name appears as SMITH/JOHNMR & JONES/ANNEMRS
...
Forum: XSLT April 26th, 2006, 06:41 AM
Replies: 1
Views: 675
Posted By MargateFan
General data formatting

Using XSLT to convert one XML file to another, I need to do a bit of data re-formatting such as:

- converting dates from one format to another (yyyymmdd to dd mmmmm yyy)
- unpacking delimited...
Forum: XSLT April 25th, 2006, 09:08 AM
Replies: 6
Views: 778
Posted By MargateFan
Brilliant. Many thanks again

Brilliant.

Many thanks again
Forum: XSLT April 25th, 2006, 07:20 AM
Replies: 6
Views: 778
Posted By MargateFan
thanks Shasto100, but I had already tried this &...

thanks Shasto100, but I had already tried this & it came up with "The 'Select' attribute is not declared"
Forum: XSLT April 25th, 2006, 05:56 AM
Replies: 6
Views: 778
Posted By MargateFan
XML to XML

I'm fairly new to XSLT, so this is likely to be the first of many questions!

Using XSLT I'm trying to convert the following lines of XML:

<Type>Office</Type>
<PhoneNbr>123456789</PhoneNbr>
...
Showing results 1 to 24 of 24

 




Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.