[Home] [By Thread] [By Date] [Recent Entries]

  • From: Philip Fennell <Philip.Fennell@m...>
  • To: Michael Kay <mike@s...>, "xml-dev@l..."<xml-dev@l...>
  • Date: Wed, 8 Dec 2010 03:42:14 -0800

Micheal wrote:

 

> The main drawback seems to be that it's hard to parameterize it, that is,

> to make anything dependent on data content or user input.

 

I’d say you’d want to consider what is being planned for the xf:transform action in XForms. Currently, XForms has all the pieces necessary to do this bar the invoking of the transform, but that is already available as an extension in some implementations. With XForms it doesn’t all come out of a single element, you need to define an instance for the data and some events that trigger actions and something with which to bind the result to the view. But then that’s probably why it is difficult to parameterize all in one element.

 

Regards

 

Philip Fennell
Consultant
MarkLogic Corporation

 

 

 

From: Michael Kay [mailto:mike@s...]
Sent: 05 December, 2010 11:45 PM
To: xml-dev@l...
Subject: Re: Where is XML going

 



 

Personally, I'd like to see an inline <transform> tag in HTML5:

 

<transform 

    stylesheet="xs:anyURI

    data=""xs:anyURI" 

    type="mime-type" 

    refresh="timeInterval

    asynch="xs:boolean"

    media="xs:NMTokens" 

    id="xs:ID">

      Default Internal Content

</transform> 

 

This would be a display tag that would load the data either from a server or from a block of XML in the client, then would apply they associated stylesheet to that data in order to provide output that would replace the current child content.


I've been thinking about doing something like this as an alternative to having to invoke a transformation using Javascript. The main drawback seems to be that it's hard to parameterize it, that is, to make anything dependent on data content or user input.

Michael Kay
Saxonica



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member