[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Muenchian grouping in XSLT 2

Subject: RE: Muenchian grouping in XSLT 2
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 7 Sep 2005 14:21:41 +0100
michael scriven 1967
Your code is correct, you should raise the problem with Altova. Remember
that their XSLT 2.0 processor is fairly new.

Michael Kay
http://www.saxonica.com/


> -----Original Message-----
> From: Thomas J. Sebestyen [mailto:a9105535@xxxxxxxxxxxxxxxxx]
> Sent: 06 September 2005 20:52
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Muenchian grouping in XSLT 2
>
> Hello,
>
> given the following xml (see above at the end of mail) and
> the following
> xslt:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="2.0" xmlns="http://www.w3.org/1999/xhtml"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>     <xsl:output doctype-public="-//W3C//DTD XHTML 1.0
> Transitional//EN"
> doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhmtl1-transit
> ional.dtd"
> include-content-type="yes" indent="yes" method="xhtml"
> omit-xml-declaration="yes"/>
>     <xsl:key match="li" name="likey" use="."/>
>     <xsl:template match="/">
>         <html>
>             <head>
>                 <title />
>             </head>
>             <body>
>                 <xsl:apply-templates
> select="usability/inhalt/litlist"/>
>             </body>
>         </html>
>     </xsl:template>
>     <xsl:template match="litlist">
>         <ul>
>             <xsl:for-each select="ul/li[generate-id(.) =
> generate-id(key('likey', .)[1])]">
>                 <xsl:sort/>
>                 <li>
>                       <xsl:value-of select="."/>
>                 </li>
>             </xsl:for-each>
>         </ul>
>     </xsl:template>
> </xsl:stylesheet>
>
>
>
> Saxon 8.4 do the transformation without any problem (no errors
> reported).
> XMLSyp abort the tranformation at
> <xsl:for-each select="ul/li[generate-id(.) = generate-id(key('likey',
> .)[1])]">
> and lapidary said: "Error in XPath 2.0 expression".
>
> Which of the processor is right? I could not explain the behavior of
> XMLSpy to me.
>
> Regards
> Thomas
>
> Example xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <usability>
>    <inhalt>
>       <litlist>
>          <ul>
>             <li>Nielsen, Jakob &amp; Mack, Robert (1994): Usability
> Inspection Methods. New York &amp; andere: John Wiley &amp; Sons.</li>
>             <li>Nielsen, Jakob (1993). Usability Engineering. Boston:
> Academic Press.</li>
>             <li>Rosson, M. &amp; Carroll, J. (2002). Usability
> Engineering - Scenario-based development of human-computer
> interaction.
> San Francisco(u.a.): Morgan Kaufmann.</li>
>             <li>Rosenfeld, L. &amp; Morville, P. (2002). Information
> Architecture for the World Wide Web: Designing Large Scale Web Sites.
> Cambridge: OReilly &amp; Associates.</li>
>             <li>Schweibenz, Werner (2001). Evaluation des
> Intranet-Angebots Multimediales Lernen bei DaimlerChrysler, Standort
> Stuttgart. In R. Schmidt (Hrsg.), Information Research &amp; Content -
> Orientierung, Ordnung und Organisation im Wissensmarkt.
> Proceedings der
> 23. Online-Tagung der DGI und 53. Jtg Frankfurt am Main 8. bis 10. Mai
> 200.1 (486-497). Frankfurt/Main: DGI. </li>
>             <li>Nielsen, Jakob &amp; Mack, Robert (1994): Usability
> Inspection Methods. New York &amp; andere: John Wiley &amp; Sons.</li>
>             <li>Scriven, Michael (1967): The methodology of
> evaluation.
> In: R. Tyler, R. Gagne und M. Scriven: Perspectives of curriculum
> evaluation. Rand McNally.</li>
>             <li>Thimbleby, Harold (2004). User interface design with
> matrix algebra. In: ACM Transactions on Computer-Human-Interaction
> (11-2). S. 181-236.</li>
>             <li>Kahn, Michael &amp; Prail, Amanda (1994): Formal
> Usability Inspection. In: Nielsen, Jakob &amp; Mack, Robert (1994):
> Usability Inspection Methods. New York &amp; andere: John Wiley &amp;
> Sons. S.141-171.</li>
>             <li>Mandl, H., Prenzel, M. &amp; Rheinmann-Rothmeier, G.
> (1994). Computerunterst|tzte Lernumgebungen.,
> (Hrsg.)Arzberger H. &amp;
> Brehm, K.H.. Erlangen: Publicis MCD Verlag.</li>
>             <li>Nielsen, Jakob (1993). Usability Engineering. Boston:
> Academic Press.</li>
>             <li>Bartel, T. (2003). Die Verbesserung der Usability von
> WebSites - auf der Basis von WebStyleguides, Usability Testing und
> Logfile-Analysen. Berlin: WiKu.</li>
>             <li>Hegner, M. (2003). Methoden zur Evaluation von
> Sowftware. IZ-Arbeitsbericht Nr. 29, Bonn: InformationsZentrum
> Sozialwissenschaften (ASI).</li>
>             <li>Rosson, M. &amp; Carroll, J. (2002). Usability
> Engineering - Scenario-based development of human-computer
> interaction.
> San Francisco(u.a.): Morgan Kaufmann.</li>
>             <li>Rosenfeld, L. &amp; Morville, P. (2002). Information
> Architecture for the World Wide Web: Designing Large Scale Web Sites.
> Cambridge: OReilly &amp; Associates.</li>
>             <li>Rosenfeld, L. &amp; Morville, P. (2002). Information
> Architecture for the World Wide Web: Designing Large Scale Web Sites.
> Cambridge: OReilly &amp; Associates.</li>
>          </ul>
>       </litlist>
>    </inhalt>
> </usability>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.