Giter Site home page Giter Site logo

Allow tokens in xsl:mode/@name about qtspecs HOT 5 CLOSED

qt4cg avatar qt4cg commented on June 19, 2024 1
Allow tokens in xsl:mode/@name

from qtspecs.

Comments (5)

michaelhkay avatar michaelhkay commented on June 19, 2024

You mean something like

<xsl:mode name="a" on-no-match="fail" />
<xsl:mode name="b" on-no-match="deep-skip"/>
<xsl:mode name="a b" typed="no"/>

with some rule for combining the multiple declarations as with xsl:output and xsl:decimal-format?

Having a list of names on a single declaration would be a departure from current practice and the implications would need working through; we currently have cases where we allow multiple declarations for one component, but not the other way around.

from qtspecs.

yamahito avatar yamahito commented on June 19, 2024

I was thinking more like

<xsl:mode name="a b" on-no-match="fail"/>
<xsl:mode name="c d" on-no-match="deep-skip"/>

rather than allowing for combinations.

from qtspecs.

michaelhkay avatar michaelhkay commented on June 19, 2024

I guess the semantics aren't actually that complex; we just define

<xsl:mode name="a b" on-no-match="fail"/>
as an abbreviation for

<xsl:mode name="a" on-no-match="fail"/>
<xsl:mode name="b" on-no-match="fail"/>

But it's not at all clear to me that it's really a usability improvement.

from qtspecs.

michaelhkay avatar michaelhkay commented on June 19, 2024

On balance, I think the complexity exceeds the benefits, and I'm going to propose closing with no action.

from qtspecs.

yamahito avatar yamahito commented on June 19, 2024

Sad face :(

But understandable.

from qtspecs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.