-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handled custom attributes when converting XmlText to RichText #92
Conversation
@@ -149,6 +149,18 @@ | |||
<xsl:template match="line"> | |||
</xsl:template> | |||
|
|||
<xsl:template name="custom-attributes"> | |||
<xsl:if test="@*[namespace-uri() = 'http://ez.no/namespaces/ezpublish3/custom/' and not( local-name() = 'class' ) and not( local-name() = 'align' )]"> | |||
<xsl:element name="ez-custom-attributes" namespace="http://docbook.org/ns/docbook"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be aligned with requested naming changes in ezsystems/ezplatform-richtext#35 (review)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
lib/FieldType/XmlText/Input/Resources/stylesheets/eZXml2Docbook_core.xsl
Show resolved
Hide resolved
I think the next logical steps here would be:
|
From my side this is good plan, but points 3-5 indeed need to be validated by @andrerom and/or @vidarl :) |
Waiting for merge #91 to continue the work here. |
#91 was merged |
@vidarl Please check the latest changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find the PR fine, but would like to have all green on travis before we merge this, ref. #94
Sorry, but all failed tests does not depend on #94 I believe. They are failing because of |
Right, so since this PR introduces dependency to |
Failure is due to CS checker and PHP 7.3, I'll update that in master 👍 |
Related to ezsystems/ezplatform-richtext#35
Following eZ XML:
Is converted to: