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 109
Search took 0.01 seconds.
Search: Posts Made By: mphare
Forum: XSLT April 13th, 2012, 09:26 AM
Replies: 1
Views: 750
Posted By mphare
SLAX

This is what I'm up against, here at work. People think I'm crazy to be using XSLT to do XML processing (I think they are crazy not to). They don't understand the language, the syntax, the processing...
Forum: XSLT October 31st, 2011, 01:46 PM
Replies: 1
Views: 696
Posted By mphare
result-document and filenaming

Hi,

Using Saxon 9, Windows 7 and Solaris.

My XSLT script needs to generate a bunch of XML files with various filenames. For one reason or another some of these filename need to include the '#'...
Forum: XSLT October 28th, 2011, 10:51 AM
Replies: 3
Views: 744
Posted By mphare
This is where my lack of understanding the XSLT...

This is where my lack of understanding the XSLT processing model really shines.

I would have looked at base1/entity = base2/entity as meaning the two are only equal if the entire sequence:...
Forum: XSLT October 27th, 2011, 03:58 PM
Replies: 3
Views: 744
Posted By mphare
So many good things to learn about XPath.. for...

So many good things to learn about XPath.. for example.. the 'some' 'satisfies' construct.


<xsl:sequence select="some $i in base1//entity satisfies exists(base2//entity[. eq...
Forum: XSLT October 27th, 2011, 03:30 PM
Replies: 3
Views: 744
Posted By mphare
Find item in one result in another result

First, let me say that many people here, at work, have told me XSLT is the completely wrong language to be working in. I should be using JAVA or PERL or EXPECT, etc..

Since all my data sits...
Forum: XSLT September 2nd, 2011, 05:07 PM
Replies: 3
Views: 2,275
Posted By mphare
I wish I could find a nice emot-i-con for...

I wish I could find a nice emot-i-con for 'egg-on-face'

I tried exactly what you indicated and I thought it didn't work. Turns out it was because I had another typo that I didn't catch.

Works...
Forum: XSLT September 2nd, 2011, 04:26 PM
Replies: 3
Views: 2,275
Posted By mphare
using current-grouping-key in a select statement

Hi,

I am using Saxon from OxygenXML 13.

I am looking for tables in a rather large document and I want to copy those tables to the result.

what I have is:
<xsl:for-each-group...
Forum: XSLT June 28th, 2011, 03:18 PM
Replies: 6
Views: 7,349
Posted By mphare
Well, that's my problem - I'm looking at the 1.0...

Well, that's my problem - I'm looking at the 1.0 spec.

Thanks, for the heads up. Sam.

- m
Forum: XSLT June 28th, 2011, 02:52 PM
Replies: 6
Views: 7,349
Posted By mphare
The spec doesn't indicate that a list was even...

The spec doesn't indicate that a list was even possible. Section 5.7 just says the value of the modes must match and what happens if they do not.
Your book does indicate that a list is possible, but...
Forum: XSLT June 24th, 2011, 02:13 PM
Replies: 6
Views: 7,349
Posted By mphare
Arrow Is there a way to match multiple modes in one template?

I am using Saxon 9 on Windows 7/64 in a cygwin bash shell.

I have a chain of templates that process using a mode="import" on each template.
Somewhere near the end of the chain I would like to...
Forum: XSLT March 5th, 2011, 12:27 AM
Replies: 2
Views: 1,489
Posted By mphare
Thanks, Michael. I'll take a look at the...

Thanks, Michael. I'll take a look at the xsl:variable section a little closer.
I'm still coming to terms regarding the difference between xsl:copy-of and xsl:sequence.. I thought using xsl:sequence...
Forum: XSLT March 4th, 2011, 03:04 PM
Replies: 2
Views: 1,489
Posted By mphare
Arrow Two ways to set a variable to a temp result, why does one work and the other not?

I am using Saxon 9 EE with Oxygen XML 12.1

I an trying to set a variable to a temporary result and I have a way that works, and a way that does not. When I dump the results, they look the same to...
Forum: XSLT February 25th, 2011, 03:31 PM
Replies: 7
Views: 870
Posted By mphare
It has something to do with the way I'm filling...

It has something to do with the way I'm filling in the CCC and DDD elements.
If I just put numbers in there, like 3 and 7, then the templates work without the text() elements.

Wished I would have...
Forum: XSLT February 25th, 2011, 03:00 PM
Replies: 7
Views: 870
Posted By mphare
I agree, C was a typo, I meant CCC But I do...

I agree, C was a typo, I meant CCC
But I do believe I'm leaving out some important point, but I don't know what it is.

I distilled the XML/XSLT down to something I could easily post, in reality...
Forum: XSLT February 25th, 2011, 12:26 PM
Replies: 7
Views: 870
Posted By mphare
Thanks, Sam. I posted before I saw your response....

Thanks, Sam. I posted before I saw your response.
I get 1 2 3 4 5 in the first version, I just also get the error message.

Adding text() to the select statement silenced the error message, but I...
Forum: XSLT February 25th, 2011, 12:25 PM
Replies: 7
Views: 870
Posted By mphare
This is why I love this forum. It's like talking...

This is why I love this forum. It's like talking to a therapist. As soon a you post, you begin to discover the cure.

I added text() to the end of the select items for the for-each statement
...
Forum: XSLT February 25th, 2011, 12:15 PM
Replies: 7
Views: 870
Posted By mphare
Variables and the 'to' construct

Using Saxon 9 in Win 7/64

I have a simple enough XML

<xsl:variable name="myData">
<AAA>ABC<BBB><CCC>1</CCC><DDD>5</DDD></BBB>XYZ</AAA>
</xsl:variable>


I want to process this so I call a...
Forum: XSLT January 28th, 2011, 06:58 PM
Replies: 2
Views: 4,271
Posted By mphare
Nice! I caught myself using value-of and changed...

Nice! I caught myself using value-of and changed it to sequence, but ti didn't change the result. Using the select statement gave me exactly what I was looking for.

Thanks!
Forum: XSLT January 28th, 2011, 06:10 PM
Replies: 2
Views: 4,271
Posted By mphare
the XPath 'for' statement, returns ???

I must be reading XPath 2.0 incorrectly.

It seems that the statement:

for $i in 1 to 10 return $i
would return a sequence of the numbers from 1 to 10.
But putting that in a variable:
...
Forum: XSLT January 28th, 2011, 11:33 AM
Replies: 3
Views: 621
Posted By mphare
Thanks, Sam. I'll look over your code in more...

Thanks, Sam. I'll look over your code in more detail.

Here's what I have:


<!--
=======================================================================
-->
<xsl:template...
Forum: XSLT January 27th, 2011, 05:17 PM
Replies: 3
Views: 621
Posted By mphare
It appears child::node(), self::text() and...

It appears child::node(), self::text() and self::BBB have potential.
Forum: XSLT January 27th, 2011, 03:43 PM
Replies: 3
Views: 621
Posted By mphare
XPathing mixed data

I am using Saxon 9, I also use Oxygen 12.1 on a Windows XP machine.

I have some mixed content such as this:

<AAA>Some Text
<BBB>
<CCC>1</CCC>
<CCC>2</CCC>
</BBB>
More Text
Forum: XSLT August 19th, 2010, 11:07 AM
Replies: 2
Views: 683
Posted By mphare
Well, that's twice in one week. I think I need...

Well, that's twice in one week.
I think I need a vacation. I'm looking at this stuff cross-eyed.

Thanks!
Forum: XSLT August 19th, 2010, 10:51 AM
Replies: 2
Views: 683
Posted By mphare
xsl:sequence not doing what I thought it would

I am using Saxon 9 and my 3rd edition of XSLT 2.0 is looking mighty dog-eared :)

I must be interpreting the passages (paraphrased):
to mean what I'd like them to mean, rather than what they...
Forum: XSLT August 16th, 2010, 05:56 PM
Replies: 2
Views: 572
Posted By mphare
Well, I do feel the idiot now.. I knew I had to...

Well, I do feel the idiot now.. I knew I had to be over thinking this.

I did get it to work by adding as="node()" to the line that creates the variable. Apparently I have more reading about...
Showing results 1 to 25 of 109

 


All times are GMT -4. The time now is 12:10 PM.


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