[jboss-jira] [JBoss JIRA] (AS7-3778) TS: Fix XSLT transformations (namespaces problem)
Ondrej Zizka (JIRA)
jira-events at lists.jboss.org
Wed Feb 15 21:00:38 EST 2012
[ https://issues.jboss.org/browse/AS7-3778?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ondrej Zizka closed AS7-3778.
-----------------------------
Resolution: Rejected
False alarm - there was another transformation going on elsewhere in the process with a screwed template. I almost lost belief in almighty XSLT :)
> TS: Fix XSLT transformations (namespaces problem)
> -------------------------------------------------
>
> Key: AS7-3778
> URL: https://issues.jboss.org/browse/AS7-3778
> Project: Application Server 7
> Issue Type: Sub-task
> Components: Test Suite
> Reporter: Ondrej Zizka
> Assignee: Ondrej Zizka
> Fix For: 7.1.1.Final
>
> Original Estimate: 2 days
> Remaining Estimate: 2 days
>
> Applying the standard XSLT copy template,
> {code:xml}
> <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>
> {code}
> to the JBoss AS 7 standalone.xml, leads to loss of parameters:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?><server xmlns="urn:jboss:domain:1.1">
> <extensions>
> <extension/>
> <extension/>
> {code}
> instead of
> {code:xml}
> <?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"/>
> {code}
> It's something namespace-related because ds:... attribs ARE copied:
> {code:xml}
> <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">
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list