Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-576 Testsuite tasks (tracking)
  3. WFLY-635

TS: Fix XSLT transformations (namespaces problem)

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • None
    • None

      Applying the standard XSLT copy template,

      <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                      xmlns:ds="urn:jboss:domain:datasources:1.0"
                      xmlns="urn:jboss:domain:1.1"
                      version="1.0">
      
          <xsl:template match="@*|node()">
              <xsl:copy>
                  <xsl:apply-templates select="@*|node()"/>
              </xsl:copy>
          </xsl:template>
      

      to the JBoss AS 7 standalone.xml, leads to loss of parameters:

      <?xml version="1.0" encoding="UTF-8"?><server xmlns="urn:jboss:domain:1.1">
          <extensions>
              <extension/>
              <extension/>
      

      instead of

      <?xml version="1.0" encoding="UTF-8"?><server xmlns="urn:jboss:domain:1.1">
          <extensions>
              <extension module="org.jboss.as.clustering.infinispan"/>
              <extension module="org.jboss.as.configadmin"/>
      

      It's something namespace-related because ds:... attribs ARE copied:

              <subsystem>
                  <datasources>
                      <ds:datasource xmlns:ds="urn:jboss:domain:1.1" jndi-name="java:jboss/datasources/ExampleDS"
                                 pool-name="MSQL"
                                 enabled="true"
                                 jta="true"
                                 use-java-context="true">
      

              ozizka_jira Ondrej Zizka (Inactive)
              ozizka_jira Ondrej Zizka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 2 days
                  2d
                  Remaining:
                  Remaining Estimate - 2 days
                  2d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified