cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Gallardo (JIRA)" <j...@apache.org>
Subject [jira] Updated: (COCOON-1888) [PATCH] forms-samples-styling.xsl should place <script> elements from source document last in <head>
Date Wed, 02 Aug 2006 01:47:14 GMT
     [ http://issues.apache.org/jira/browse/COCOON-1888?page=all ]

Antonio Gallardo updated COCOON-1888:
-------------------------------------


It's not enough to change the code to:

  <xsl:template match="head">
    <head>
      <xsl:apply-templates select="." mode="forms-page"/>
      <xsl:apply-templates select="." mode="forms-field"/>
      <xsl:apply-templates/>
    </head>
  </xsl:template>

wdyt?

> [PATCH] forms-samples-styling.xsl should place <script> elements from source document
last in <head>
> ----------------------------------------------------------------------------------------------------
>
>                 Key: COCOON-1888
>                 URL: http://issues.apache.org/jira/browse/COCOON-1888
>             Project: Cocoon
>          Issue Type: Bug
>          Components: Blocks: Forms
>    Affects Versions: 2.1.8, 2.2-dev (Current SVN), 2.1.9, 2.1.10-dev (current SVN)
>            Reporter: Mark Lundquist
>            Priority: Minor
>         Attachments: COCOON-1888.patch
>
>
> The current forms-samples-styling.xsl <head> matching template passes through all
the child elements of <head> in the source before appending its own from forms-page
and forms-field.  This breaks source documents that need to have <script> elements that
depend on JS libs added by the Forms block, e.g. pushing handlers for onload or onsubmit.
 The <script> elements added by this stylesheet need to come before and <script>
elements from the source document

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message