xsl-list
[Top] [All Lists]

Re: [xsl] Apply transform to document collection and summarize results in single output

2012-02-02 11:33:31
Thanks Ken,
I'll have a look at your course materials, I'm definitely a hands on
learner and working through examples aids immensely

Cheers

On Thu, Feb 2, 2012 at 11:22 AM, G. Ken Holman
<gkholman(_at_)cranesoftwrights(_dot_)com> wrote:
At 2012-02-02 09:29 -0500, Sean Tiley wrote:

Had some troubles with namespaces which still confuses me greatly but
its working..


Well done.  Your use of namespaces in your stylesheet is correct.


I had thought that the matching expression  should be something like
<xsl:template match="/agr:SiebelMessage/agr:Message"), then the
collection select would just have been <xsl:for-each
select="collection('file:///c:/tmp/?select=*.xml'/agr:Account">

No matter what I did I could not get that working, thought I'm sure
it's posible.


Not sure what you are trying to do there ... I think you are conflating
different concepts.  The collection() function returns a set of root nodes,
so you are obliged to find your Account element with a full path from the
root node of each document.  There are no shortcuts available by any concept
of matching part of the XPath address before calling the collection()
function.


Seems I need to read up on namespaces and xslt as there is much I do
not understand


You can read what I have to say about namespaces in my PDF book (pp.29-33)
that I sell off my web site (the entire book can be downloaded for free
preview; I ask that people pay for the book if they decide after previewing
it that they want to keep it; I wish more people would be honest about
that).

You can hear what I have to say about namespaces at the 54m10s mark of
Module 1 Lesson 1 (Lecture 2) of my XSLT/XPath training video (you do not
need to create an account in order to view the free content) ... simply open
that lecture and drag the slider to the time:

 http://www.CraneSoftwrights.com/links/udemy-ptux-online.htm

Five hours of my 24-hour long lecture are made freely available.  The
lecture was recorded over 5 days in August 2008.  The course includes
hands-on exercises and I review all of the answers.  The video is also
available to purchase as a DVD-ROM for sharing (not copying) amongst your
colleagues.  Just yesterday I reduced the cost of watching the remaining 19
hours of the online video and having access to the exercises.  This is the
2008 version of the material I still teach when I travel the world
delivering my XSLT, XQuery and XSL-FO classes.  Last week I delivered my
combination XSLT/XQuery class in London England, next month I'm delivering
the same combination class in the eastern US.

I hope this helps.

. . . . . . . . . . . Ken



--
Contact us for world-wide XML consulting and instructor-led training
Free 5-hour video lecture: XSLT/XPath 1.0 & 2.0 http://ude.my/uoui9h
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/s/
G. Ken Holman                   
mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




-- 
Sean Tiley
sean(_dot_)tiley(_at_)gmail(_dot_)com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


<Prev in Thread] Current Thread [Next in Thread>