You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Vidar S. Ramdal (JIRA)" <ji...@apache.org> on 2009/02/16 10:46:59 UTC

[jira] Created: (SLING-857) Support XSL transformations when importing XML for initial-content

Support XSL transformations when importing XML for initial-content
------------------------------------------------------------------

                 Key: SLING-857
                 URL: https://issues.apache.org/jira/browse/SLING-857
             Project: Sling
          Issue Type: New Feature
          Components: JCR Contentloader
            Reporter: Vidar S. Ramdal
            Assignee: Vidar S. Ramdal
            Priority: Minor
             Fix For: JCR Contentloader 2.0.4


As described at http://markmail.org/thread/qxi6qw77vgymrdim

Implementing support for XSL transformations while loading initial-content XML, by looking for the xml-stylesheet processing instruction.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SLING-857) Support XSL transformations when importing XML for initial-content

Posted by "Vidar S. Ramdal (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vidar S. Ramdal updated SLING-857:
----------------------------------

    Attachment: SLING-857-tests.patch

Adding testcase, see http://markmail.org/message/3sx5bjvqe3dyg6hn

> Support XSL transformations when importing XML for initial-content
> ------------------------------------------------------------------
>
>                 Key: SLING-857
>                 URL: https://issues.apache.org/jira/browse/SLING-857
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR Contentloader
>            Reporter: Vidar S. Ramdal
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: JCR Contentloader 2.0.4
>
>         Attachments: SLING-857-tests.patch, SLING-857.diff
>
>
> As described at http://markmail.org/thread/qxi6qw77vgymrdim
> Implementing support for XSL transformations while loading initial-content XML, by looking for the xml-stylesheet processing instruction.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SLING-857) Support XSL transformations when importing XML for initial-content

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger resolved SLING-857.
-------------------------------------

    Resolution: Fixed

Thanks for supplying the patch. I have applied it in Rev. 748677.

Please close this bug, if this is ok for you.

> Support XSL transformations when importing XML for initial-content
> ------------------------------------------------------------------
>
>                 Key: SLING-857
>                 URL: https://issues.apache.org/jira/browse/SLING-857
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR Contentloader
>            Reporter: Vidar S. Ramdal
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: JCR Contentloader 2.0.4
>
>         Attachments: SLING-857.diff
>
>
> As described at http://markmail.org/thread/qxi6qw77vgymrdim
> Implementing support for XSL transformations while loading initial-content XML, by looking for the xml-stylesheet processing instruction.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SLING-857) Support XSL transformations when importing XML for initial-content

Posted by "Vidar S. Ramdal (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vidar S. Ramdal updated SLING-857:
----------------------------------

    Attachment:     (was: SLING-857.diff)

> Support XSL transformations when importing XML for initial-content
> ------------------------------------------------------------------
>
>                 Key: SLING-857
>                 URL: https://issues.apache.org/jira/browse/SLING-857
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR Contentloader
>            Reporter: Vidar S. Ramdal
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: JCR Contentloader 2.0.4
>
>         Attachments: SLING-857.diff
>
>
> As described at http://markmail.org/thread/qxi6qw77vgymrdim
> Implementing support for XSL transformations while loading initial-content XML, by looking for the xml-stylesheet processing instruction.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SLING-857) Support XSL transformations when importing XML for initial-content

Posted by "Torgeir Veimo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12676298#action_12676298 ] 

Torgeir Veimo commented on SLING-857:
-------------------------------------

It would be handy to be able to specify a custom entity resolver as well. Any chance to get that incorporated?

> Support XSL transformations when importing XML for initial-content
> ------------------------------------------------------------------
>
>                 Key: SLING-857
>                 URL: https://issues.apache.org/jira/browse/SLING-857
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR Contentloader
>            Reporter: Vidar S. Ramdal
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: JCR Contentloader 2.0.4
>
>         Attachments: SLING-857.diff
>
>
> As described at http://markmail.org/thread/qxi6qw77vgymrdim
> Implementing support for XSL transformations while loading initial-content XML, by looking for the xml-stylesheet processing instruction.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SLING-857) Support XSL transformations when importing XML for initial-content

Posted by "Bertrand Delacretaz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12677952#action_12677952 ] 

Bertrand Delacretaz commented on SLING-857:
-------------------------------------------

SLING-857-tests.patch applied in revision 749266, thanks!

> Support XSL transformations when importing XML for initial-content
> ------------------------------------------------------------------
>
>                 Key: SLING-857
>                 URL: https://issues.apache.org/jira/browse/SLING-857
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR Contentloader
>            Reporter: Vidar S. Ramdal
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: JCR Contentloader 2.0.4
>
>         Attachments: SLING-857-tests.patch, SLING-857.diff
>
>
> As described at http://markmail.org/thread/qxi6qw77vgymrdim
> Implementing support for XSL transformations while loading initial-content XML, by looking for the xml-stylesheet processing instruction.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (SLING-857) Support XSL transformations when importing XML for initial-content

Posted by "Vidar S. Ramdal (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vidar S. Ramdal reopened SLING-857:
-----------------------------------

      Assignee: Felix Meschberger  (was: Vidar S. Ramdal)

Ooops, shouldn't have marked this as 'resolved' before it is commited.

> Support XSL transformations when importing XML for initial-content
> ------------------------------------------------------------------
>
>                 Key: SLING-857
>                 URL: https://issues.apache.org/jira/browse/SLING-857
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR Contentloader
>            Reporter: Vidar S. Ramdal
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: JCR Contentloader 2.0.4
>
>         Attachments: SLING-857.diff
>
>
> As described at http://markmail.org/thread/qxi6qw77vgymrdim
> Implementing support for XSL transformations while loading initial-content XML, by looking for the xml-stylesheet processing instruction.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SLING-857) Support XSL transformations when importing XML for initial-content

Posted by "Vidar S. Ramdal (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12676620#action_12676620 ] 

Vidar S. Ramdal commented on SLING-857:
---------------------------------------

It shouldn't be too hard to plug in an entity resolver. But how would you like to register it? A config property, or something else?

> Support XSL transformations when importing XML for initial-content
> ------------------------------------------------------------------
>
>                 Key: SLING-857
>                 URL: https://issues.apache.org/jira/browse/SLING-857
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR Contentloader
>            Reporter: Vidar S. Ramdal
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: JCR Contentloader 2.0.4
>
>         Attachments: SLING-857.diff
>
>
> As described at http://markmail.org/thread/qxi6qw77vgymrdim
> Implementing support for XSL transformations while loading initial-content XML, by looking for the xml-stylesheet processing instruction.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SLING-857) Support XSL transformations when importing XML for initial-content

Posted by "Vidar S. Ramdal (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vidar S. Ramdal updated SLING-857:
----------------------------------

    Attachment: SLING-857.diff

The first patch contained a bug, which would skip some attributes in processing instructions. Please apply this patch instead.

> Support XSL transformations when importing XML for initial-content
> ------------------------------------------------------------------
>
>                 Key: SLING-857
>                 URL: https://issues.apache.org/jira/browse/SLING-857
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR Contentloader
>            Reporter: Vidar S. Ramdal
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: JCR Contentloader 2.0.4
>
>         Attachments: SLING-857.diff
>
>
> As described at http://markmail.org/thread/qxi6qw77vgymrdim
> Implementing support for XSL transformations while loading initial-content XML, by looking for the xml-stylesheet processing instruction.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SLING-857) Support XSL transformations when importing XML for initial-content

Posted by "Vidar S. Ramdal (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vidar S. Ramdal updated SLING-857:
----------------------------------

    Attachment: SLING-857.diff

Patch for the jcr/contentloader bundle.

This implements support for <?xml-stylesheet?> processing instructions in initial-content XML.

The reference to the XSL file is relative to the location of the XML file. For relative URLs (bundle:// protocol) to work, you must set felix.service.urlhandlers=true in sling.properties.

> Support XSL transformations when importing XML for initial-content
> ------------------------------------------------------------------
>
>                 Key: SLING-857
>                 URL: https://issues.apache.org/jira/browse/SLING-857
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR Contentloader
>            Reporter: Vidar S. Ramdal
>            Assignee: Vidar S. Ramdal
>            Priority: Minor
>             Fix For: JCR Contentloader 2.0.4
>
>         Attachments: SLING-857.diff
>
>
> As described at http://markmail.org/thread/qxi6qw77vgymrdim
> Implementing support for XSL transformations while loading initial-content XML, by looking for the xml-stylesheet processing instruction.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SLING-857) Support XSL transformations when importing XML for initial-content

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12677513#action_12677513 ] 

Felix Meschberger commented on SLING-857:
-----------------------------------------

@Torgeir: I agree that it would be interesting to inject custom entity resolves. But I think, we should handle this in a new issue. Switching over to the mailing list for this discussion.

> Support XSL transformations when importing XML for initial-content
> ------------------------------------------------------------------
>
>                 Key: SLING-857
>                 URL: https://issues.apache.org/jira/browse/SLING-857
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR Contentloader
>            Reporter: Vidar S. Ramdal
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: JCR Contentloader 2.0.4
>
>         Attachments: SLING-857.diff
>
>
> As described at http://markmail.org/thread/qxi6qw77vgymrdim
> Implementing support for XSL transformations while loading initial-content XML, by looking for the xml-stylesheet processing instruction.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SLING-857) Support XSL transformations when importing XML for initial-content

Posted by "Vidar S. Ramdal (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vidar S. Ramdal updated SLING-857:
----------------------------------

    Attachment: SLING-857.diff

Working with XmlReader, I found that it would be useful to support CDATA sections in the XML that is being processed. Until now, XmlReader would happily ignore any CDATA, making it impossible to specify HTML as a property value.
Now, XmlReader treats CDATA as text.

> Support XSL transformations when importing XML for initial-content
> ------------------------------------------------------------------
>
>                 Key: SLING-857
>                 URL: https://issues.apache.org/jira/browse/SLING-857
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR Contentloader
>            Reporter: Vidar S. Ramdal
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: JCR Contentloader 2.0.4
>
>         Attachments: SLING-857.diff
>
>
> As described at http://markmail.org/thread/qxi6qw77vgymrdim
> Implementing support for XSL transformations while loading initial-content XML, by looking for the xml-stylesheet processing instruction.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SLING-857) Support XSL transformations when importing XML for initial-content

Posted by "Vidar S. Ramdal (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vidar S. Ramdal updated SLING-857:
----------------------------------

    Attachment:     (was: SLING-857.diff)

> Support XSL transformations when importing XML for initial-content
> ------------------------------------------------------------------
>
>                 Key: SLING-857
>                 URL: https://issues.apache.org/jira/browse/SLING-857
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR Contentloader
>            Reporter: Vidar S. Ramdal
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: JCR Contentloader 2.0.4
>
>
> As described at http://markmail.org/thread/qxi6qw77vgymrdim
> Implementing support for XSL transformations while loading initial-content XML, by looking for the xml-stylesheet processing instruction.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SLING-857) Support XSL transformations when importing XML for initial-content

Posted by "Vidar S. Ramdal (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vidar S. Ramdal resolved SLING-857.
-----------------------------------

    Resolution: Fixed

> Support XSL transformations when importing XML for initial-content
> ------------------------------------------------------------------
>
>                 Key: SLING-857
>                 URL: https://issues.apache.org/jira/browse/SLING-857
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR Contentloader
>            Reporter: Vidar S. Ramdal
>            Assignee: Vidar S. Ramdal
>            Priority: Minor
>             Fix For: JCR Contentloader 2.0.4
>
>         Attachments: SLING-857.diff
>
>
> As described at http://markmail.org/thread/qxi6qw77vgymrdim
> Implementing support for XSL transformations while loading initial-content XML, by looking for the xml-stylesheet processing instruction.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.