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 25 of 35
Search took 0.01 seconds.
Search: Posts Made By: WilliamYou
Forum: XSLT December 21st, 2012, 06:19 AM
Replies: 2
Views: 976
Posted By WilliamYou
I have submitted a support request to this site,...

I have submitted a support request to this site, but I posted here as I assumed that someone might know the answer as I for one do not think that I'm the first person to want to do this.



OK....
Forum: XSLT December 20th, 2012, 12:52 PM
Replies: 2
Views: 976
Posted By WilliamYou
Java Generics and XSLT

Hello!

What I would like to do is use Generics and template my Buffer class; class Buffer <T>. This I can easily do but I then need to create instances of these buffers in my XSLTs can I do this?...
Forum: XSLT December 20th, 2012, 07:28 AM
Replies: 4
Views: 577
Posted By WilliamYou
As noted earlier this does work but when the...

As noted earlier this does work but when the function is not available (simulated by excluding the xsl:include) then I can't compile the stylesheet.

I have tried use-when <xsl:if test="$debug">
...
Forum: XSLT December 20th, 2012, 07:04 AM
Replies: 4
Views: 577
Posted By WilliamYou
Thank you both. I was looking in to...

Thank you both.

I was looking in to Michael's reply and ended up with Martin's answer. So I'm very happy with that, maybe I should have given it a bit more thought before posting!

--
William
Forum: XSLT December 20th, 2012, 06:03 AM
Replies: 4
Views: 577
Posted By WilliamYou
Remote functions!

Hello (again).

Is this even possible? I would like to create an <xsl:function> and store its definition and implementation on a remote server so I do not need to include the code in the template...
Forum: XSLT December 18th, 2012, 12:58 PM
Replies: 2
Views: 3,968
Posted By WilliamYou
As always; Thank you, I was beginning to think it...

As always; Thank you, I was beginning to think it was me!

--
William
Forum: XSLT December 18th, 2012, 12:11 PM
Replies: 2
Views: 3,968
Posted By WilliamYou
Exclamation XPath to exclude child elements.

Hello,

Given an XML file of :

Level_1
Level_2
Level_3

Is there any XPath can I use to return ONLY the Level_2 element (and attributes) with NO Level_3 elements? I'm thinking not, but...
Forum: XSLT December 14th, 2012, 11:21 AM
Replies: 4
Views: 1,024
Posted By WilliamYou
Thank you again Mr. Kay, very much appreciated. ...

Thank you again Mr. Kay, very much appreciated.

For those that are interested here is the final template (prior to filling in the blanks of course).

<?xml version="1.0" encoding="UTF-8"?>...
Forum: XSLT December 14th, 2012, 04:44 AM
Replies: 4
Views: 1,024
Posted By WilliamYou
Thank you once again Mr. Kay. I have re-worked...

Thank you once again Mr. Kay. I have re-worked the build template to include your solution
<xsl:template name="build">
<xsl:variable name="modes" select="(xs:QName('CSV'), xs:QName('XML'),...
Forum: XSLT December 13th, 2012, 06:23 AM
Replies: 4
Views: 1,024
Posted By WilliamYou
Extract string by position()

Hello,

Rather than clutter my template with lots of xsl:if statements I thought it would make sense to create a for-each loop. However, running this code
<?xml version="1.0" encoding="UTF-8"?>...
Forum: XSLT December 12th, 2012, 04:18 PM
Replies: 2
Views: 2,248
Posted By WilliamYou
Hello, and thank you for the reply. Using the...

Hello, and thank you for the reply. Using the dummy node approach works great, but what I thought would be a bitwise operation doesn't work the way I assumed but :

(floor($types div 1) mod 2 = 1)...
Forum: XSLT December 12th, 2012, 12:39 PM
Replies: 2
Views: 2,248
Posted By WilliamYou
Finding root of tree: the context item is undefined

Hi,

I am trying to create a transformation that will generate either XML and or CSV based on a bitwise operation. The data is provided via a POJO (to be passed as a xsl:param) but as I have no...
Forum: XSLT December 1st, 2012, 11:48 AM
Replies: 2
Views: 3,741
Posted By WilliamYou
Excellent Sam. Thank you very much, I'd over done...

Excellent Sam. Thank you very much, I'd over done the formatting.

--
William
Forum: XSLT December 1st, 2012, 10:41 AM
Replies: 2
Views: 3,741
Posted By WilliamYou
XTDE0410: Cannot create an attribute node after creating ...

Hello,

I've extracted this from my XSLT :

<xsl:element name="resource"><xsl:text>&#xa;</xsl:text>
<xsl:variable name="OnTime" select="Resource:checkOnTime($resource, xs:string('PX8'),...
Forum: XSLT December 1st, 2012, 10:23 AM
Replies: 1
Views: 3,376
Posted By WilliamYou
Hello. From what I see you are missing a...

Hello.

From what I see you are missing a Cell elements to encapsulate your <Data />

<Cell>
<Data></Data>
</Cell>


Hope this helps.
Forum: XSLT November 19th, 2012, 09:56 AM
Replies: 7
Views: 2,383
Posted By WilliamYou
Hi, with a few tweaks here (Java) and there...

Hi, with a few tweaks here (Java) and there (XSLT) I now have this working. Thanks.

--
William
Forum: XSLT November 17th, 2012, 10:43 AM
Replies: 7
Views: 2,383
Posted By WilliamYou
Thanks bonekrusher. This exactly what I am...

Thanks bonekrusher.

This exactly what I am doing as the original post states. So are you saying with the correct imports (via namespaces) I can do this in XSLT just like in Java?
Forum: XSLT November 17th, 2012, 09:35 AM
Replies: 7
Views: 2,383
Posted By WilliamYou
I think we are at cross purposes here. I want to...

I think we are at cross purposes here. I want to do this in a Transformation XSLT template document using xslt / xpath.
Forum: XSLT November 17th, 2012, 06:34 AM
Replies: 7
Views: 2,383
Posted By WilliamYou
Hello, Thanks for that but sadly this...

Hello,

Thanks for that but sadly this approach does not work for me as I do not know the key values. The values are known but only as an attributeGroup in the Schema, so I have no way of knowing...
Forum: XSLT November 16th, 2012, 12:02 PM
Replies: 7
Views: 2,383
Posted By WilliamYou
Iterating a Java HashMap in an XSLT file.

Hello,

The first thing I should ask is is this possible?

I am using Extensions (Saxon-B) and I have a HashMap

Map < String, Double > myList = new HashMap< String, Double >() ;
...
Forum: XSLT November 9th, 2012, 10:36 AM
Replies: 3
Views: 825
Posted By WilliamYou
Hello. Having finally had time to get back to...

Hello. Having finally had time to get back to this and read the documentation I am still no further forward, as I still see no way of "registering" my POJO class or providing an instance of it so I...
Forum: XSLT November 5th, 2012, 01:07 PM
Replies: 3
Views: 825
Posted By WilliamYou
Exclamation Using Saxon Extensions from Java Applet

Hi.

I have a Java applet that populates an object with data extracted from the Applet's UI after it is entered by the User. Now using Saxon extensions I now want to pass this 'live' object to a...
Forum: XML October 29th, 2012, 03:44 PM
Replies: 2
Views: 1,284
Posted By WilliamYou
Ah well there's the rub, I don't know as I don't...

Ah well there's the rub, I don't know as I don't know what the best approach is. All I want to do after the User has completed the input form is to load a fragment of XML :

<foo attrA="" attrB=""...
Forum: XML October 29th, 2012, 11:47 AM
Replies: 2
Views: 1,284
Posted By WilliamYou
Question Create an XML document using JAXP and XML fragments.

Hi all.

I hope this is the correct place to ask this question, but if not then a pointer in the right direction would be good.

Does anyone have a link to a resource that will show me how to...
Forum: BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition ISBN: 978-0-470-19274-0 October 11th, 2012, 09:47 AM
Replies: 8
Views: 1,651
Posted By WilliamYou
As elegant as that sounds to be honest I don't...

As elegant as that sounds to be honest I don't think I can, as I have to be able to allow the system (comprised of 3 Applets) to work offline (i.e. no Internet connection), but this isn't the main...
Showing results 1 to 25 of 35

 




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