correct use of xppattr and attr()

I am struggling to get something to work and wondered if someone could point me in the right direction?

I need to call a XyPerl subroutine in the ::before tag to set something up which will allow me to alter whether the paragraph is centered or range left. There is a counter which is set that allows me to test and use an if / else statement so I can then use the xppattr to load different values.

Then I need to use the attr() function to the text-align property in the main para to change to the relevant value.

However everything I have tried, and believe me I have tried many things, does not seem to change anyhting.

Parents
  • So, where do we go from here?

    Just like is often the case with XPP, there are "twenty" ways to do something and if one way doesn't work there is often another way to accomplish what you need to do (as in this case).

    That being said, it's not always convenient to have to do it another way.

    I think it's safe to say from Tony's response that doing more "wholesale" support of the 'string' type with attr() with all CSS properties is "bigger than a breadbox".

    I believe that the CSS parsing engine being used by XPP is some open-source package, and apparently it's not already doing what you want here.

    We now need to move this into the purview of XPP Ideas, as it's now apparent that this is a RFE (request for enhancement).

    I would ask that one of you (i.e. Chris or Bart) open an XPP Idea on this subject and please include a use-case.

    That will allow for others to vote on the request and for us to make the necessary costs versus needs analysis.

    Jonathan Dagresta
    RWS Group/
    XPP Development

Reply
  • So, where do we go from here?

    Just like is often the case with XPP, there are "twenty" ways to do something and if one way doesn't work there is often another way to accomplish what you need to do (as in this case).

    That being said, it's not always convenient to have to do it another way.

    I think it's safe to say from Tony's response that doing more "wholesale" support of the 'string' type with attr() with all CSS properties is "bigger than a breadbox".

    I believe that the CSS parsing engine being used by XPP is some open-source package, and apparently it's not already doing what you want here.

    We now need to move this into the purview of XPP Ideas, as it's now apparent that this is a RFE (request for enhancement).

    I would ask that one of you (i.e. Chris or Bart) open an XPP Idea on this subject and please include a use-case.

    That will allow for others to vote on the request and for us to make the necessary costs versus needs analysis.

    Jonathan Dagresta
    RWS Group/
    XPP Development

Children
No Data