on 2013 Jul 25 8:50 AM
HI experts!
I have a doubt about XSLT. I'm trying get via XPATH to value of the tag <Nombre> but I don't know how can I do it.
I'm tryng acces with this XPTAH:
<xsl:copy-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='C' and ./@id='atom1']/*/Table1/Nombre"> |
but it's impossible.
I also tried with code:
<xsl:copy-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role='C' and ./@id='atom1']/DescargarFicheroPendienteResponse/DescargarFicheroPendienteResult/NewDataSetTable1/Nombre"> |
My problem is the tag:
<DescargarFicheroPendienteResponse xmlns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <Payload Role="C" id="atom1" statusNo="0" statusMsg="success" reference="atom2" payload="atom2" calltype="solicit response (call/reply)" adapter="WSAS">
- <http.header>
- <http.header.info id="X-AspNet-Version" value="2.0.50727"/>
- <http.header.info id="Date" value="Wed, 24 Jul 2013 10:23:53 GMT"/>
- <http.header.info id="Content-Length" value="494"/>
- <http.header.info id="MicrosoftOfficeWebServer" value="5.0_Pub"/>
- <http.header.info id="Content-Type" value="text/xml; charset=utf-8"/>
- <http.header.info id="Server" value="Microsoft-IIS/6.0"/>
- <http.header.info id="X-Powered-By" value="ASP.NET"/>
- <http.header.info id="Cache-Control" value="private, max-age=0"/>
- </http.header>
- <DescargarFicheroPendienteResponse xmlns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <DescargarFicheroPendienteResult>
- <NewDataSet xmlns="">
- <Table1>
- <Nombre>0</Nombre>
- <Contenido/>
- </Table1>
- </NewDataSet>
- </DescargarFicheroPendienteResult>
- </DescargarFicheroPendienteResponse>
- </Payload>
I think my problem is about the namespace xmlns="http://tempuri.org/", but I don't know how can I solve it.
I have read I have to add the namespace into stylesheet
- <xsl:stylesheet xmlns:b1e="urn:com.sap.b1i.sim:b1event"
- xmlns:b1ie="urn:com.sap.b1i.sim:b1ievent"
- xmlns:b1im="urn:com.sap.b1i.sim:b1imessage"
- xmlns:bfa="urn:com.sap.b1i.bizprocessor:bizatoms"
- xmlns:jdbc="urn:com.sap.b1i.adapter:jdbcadapter"
- xmlns:rfc="urn:sap-com:document:sap:rfc:functions"
- xmlns:sim="urn:com.sap.b1i.sim:entity"
- xmlns:utils2="com.sap.b1i.bpc_tools.Utilities"
- xmlns:vpf="urn:com.sap.b1i.vplatform:entity"
- xmlns:xci="urn:com.sap.b1i.xcellerator:intdoc"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:po="http://tempuri.org/"
- ..............>
I Add --> xmlns:po="http://tempuri.org/"
but when test the step occurs an error:
com.sap.b1i.utilities.UtilException: UTE001 Nested exception: javax.xml.transform.TransformerConfigurationException: Could not load stylesheet.com.sap.engine.lib.xml.util.NestedException: Prefix not mapped: po -> java.lang.Exception: XMLParser: Prefix 'po' is not mapped to a namespace
Anyone can help me??
Thanks.
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
53 | |
8 | |
8 | |
5 | |
5 | |
4 | |
3 | |
2 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.