Jump to content

Search the Community

Showing results for tags 'XSLT 2.0'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Found 3 results

  1. Hi everybody, I try to implement and to show the current date in my stylesheet, but I obtain this error message during the compilation : ERROR: 'Impossible to compile the stylesheet' FATAL ERROR: 'Error during the verification of type of expression 'funcall(current-date, [])'.' :Error during the verification of type of expression 'funcall(current-date, [])'. This is an extract of my stylesheet : <?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="html" indent="yes" /> ... <xsl:template name="getMonth"> <xsl:param name="monthNbr" /> <xsl:choose> <xsl:when test="$monthNbr=1"> Janvier </xsl:when> <xsl:when test="$monthNbr=2"> Février </xsl:when> <xsl:when test="$monthNbr=3"> Mars </xsl:when> <xsl:when test="$monthNbr=4"> Avril </xsl:when> <xsl:when test="$monthNbr=5"> Mai </xsl:when> <xsl:when test="$monthNbr=6"> Juin </xsl:when> <xsl:when test="$monthNbr=7"> Juillet </xsl:when> <xsl:when test="$monthNbr=8"> Août </xsl:when> <xsl:when test="$monthNbr=9"> Septembre </xsl:when> <xsl:when test="$monthNbr=10"> Octobre </xsl:when> <xsl:when test="$monthNbr=11"> Novembre </xsl:when> <xsl:when test="$monthNbr=12"> Décembre </xsl:when> </xsl:choose> </xsl:template> <xsl:template name="date_jour"> <xsl:variable name="currentDate" select="current-date()" /> <xsl:variable name="year" select="year-from-date($currentDate)" /> <xsl:variable name="month"> <xsl:call-template name="getMonth"> <xsl:with-param name="monthNbr" select="month-from-date($currentDate)" /> </xsl:call-template> </xsl:variable> <xsl:variable name="day" select="day-from-date($currentDate)" /> <xsl:value-of select="format-number($day,'00')" /> <xsl:text> </xsl:text> <xsl:value-of select="$month" /> <xsl:text> </xsl:text> <xsl:value-of select="$year" /> </xsl:template>... </xsl:stylesheet> Any ideas ? Thank you in advance Fabrice
  2. Hi everybody, I've a problem with display of FO:TABLE. This is the source : <?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/format" xmlns:cal="xalan//java.util.GregorianCalendar" version="2.0"> <xsl:output method="html" indent="yes" />... <xsl:template match="Lignes"> <fo:layout-master-set> <fo:simple-page-master margin-right="20mm" margin-left="20mm" margin-bottom="20mm" margin-top="20mm" page-width="200mm" page-height="300mm" master-name="mainPage"> <fo:region-body margin-right="0mm" margin-left="0mm" margin-bottom="10mm" margin-top="0mm" /> <fo:region-after extent="20mm" /> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="mainPage"> <fo:flow flow-name="xsl-region-body"> <fo:block font-size="28pt" line-height="36pt" padding-after="12pt"> Creating XSL-FO Tables </fo:block> <fo:table width="16cm" table-layout="fixed"> <fo:table-column column-number="1" column-width="30mm"> </fo:table-column> <fo:table-column column-number="2" column-width="30mm"> </fo:table-column> <fo:table-column column-number="3" column-width="30mm"> </fo:table-column> <fo:table-body> <fo:table-row line-height="26pt"> <fo:table-cell column-number="1" border-style="solid"> <fo:block font-family="sans-serif" font-size="20pt" font-weight="bold"> State </fo:block> </fo:table-cell> <fo:table-cell column-number="2" border-style="solid"> <fo:block font-family="sans-serif" font-size="20pt" font-weight="bold"> Flower </fo:block> </fo:table-cell> <fo:table-cell column-number="3" border-style="solid"> <fo:block font-family="sans-serif" font-size="20pt" font-weight="bold"> Bird </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row line-height="26pt"> <fo:table-cell column-number="1" border-style="solid"> <fo:block font-family="sans-serif" font-size="20pt"> California </fo:block> </fo:table-cell> <fo:table-cell column-number="2" border-style="solid"> <fo:block font-family="sans-serif" font-size="20pt"> Quail </fo:block> </fo:table-cell> <fo:table-cell column-number="3" border-style="solid"> <fo:block font-family="sans-serif" font-size="20pt"> Golden Poppy </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row line-height="26pt"> <fo:table-cell column-number="1" border-style="solid"> <fo:block font-family="sans-serif" font-size="20pt"> Massachusetts </fo:block> </fo:table-cell> <fo:table-cell column-number="2" border-style="solid"> <fo:block font-family="sans-serif" font-size="20pt"> Chickadee </fo:block> </fo:table-cell> <fo:table-cell column-number="3" border-style="solid"> <fo:block font-family="sans-serif" font-size="20pt"> Mayflower </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row line-height="26pt"> <fo:table-cell column-number="1" border-style="solid"> <fo:block font-family="sans-serif" font-size="20pt"> New York </fo:block> </fo:table-cell> <fo:table-cell column-number="2" border-style="solid"> <fo:block font-family="sans-serif" font-size="20pt"> Bluebird </fo:block> </fo:table-cell> <fo:table-cell column-number="3" border-style="solid"> <fo:block font-family="sans-serif" font-size="20pt"> Rose </fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </fo:flow> </fo:page-sequence> </xsl:template></xsl:stylesheet> The layout of the FO-TABLE is not applied : in fact the stylesheet shows me the data in "raw" mode. Any ideas ? Thanks you in advance Fabrice
  3. Hello, My stylesheet failed to compile for this error: XPTY0020: Cannot select a node here: the context item is an atomic value at this line: <xsl:when test="$event[substring-before(start/datetime, 'T')=$dateJour]"> Here is all the code of the template: http://pastebin.com/fmPUHGpR. The error is on line 20. Yesterday, I search on a lot of websites and forums who says to put a global variable outside the for-each. $event is a global variable. I try to put event/start/datetime in a global variable but I still have the error. Could you please help me?
  • Create New...