With collective.xdv installed and transforming our custom theme, we'd
like to comment the various things happening with the inline xsl.
Based on the tests in the xdv package, we can add a comment outside of
a xdv rule like so:

 $ cat xinclude/included-rules.xml

<rules xmlns="http://namespaces.plone.org/xdv";
    xmlns:css="http://namespaces.plone.org/xdv+css";>

    <!--comment-->
    <copy css:theme="#target" css:content="body > *"/>

</rules>

And all tests still pass.  However, if we do something like this in
the same file:

<rules xmlns="http://namespaces.plone.org/xdv";
    xmlns:css="http://namespaces.plone.org/xdv+css";>

    <replace css:theme="#target">
    <p>Foo Bar</p>
    <!--comment-->
    </replace>

</rules>

The comment actually comes through to the output html and we get the
expected test failure. We are using some fairly extensive
transformations and we would really appreciate the ability to comment
the xsl without passing on those comments to the output html. This is
possible with mod_transform and not using inline xsl, but is there
anything we can do to salvage our future sanity?

Thank you.
_______________________________________________
Product-Developers mailing list
Product-Developers@lists.plone.org
https://lists.plone.org/mailman/listinfo/product-developers

Reply via email to