on 07-29-2008 4:31 PM
When SAP generates xml it creates <ns: in front of TagName which would be OK except that when I try to read the document using xsl it does not work. However when I remove the ns: part from the source it works fine.
here is the code:
does not work
<xsl:for-each select='ns:MT_HSBCData/HSBCRecordSet/HSBCRecord'>
<xsl:value-of select='HSBCLine'/>
<xsl:text><br></xsl:text>
</xsl:for-each>
does work
<xsl:for-each select='MT_HSBCData/HSBCRecordSet/HSBCRecord'>
<xsl:value-of select='HSBCLine'/>
<xsl:text><br></xsl:text>
</xsl:for-each>
It should work even when you prefix ns in your message type.
Also check whether you have defined namespace and its prefix ns in the top of XSLT mapping...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
It can work even work with ns: just add your namespace to the xslt.
like here:
http://www.xml.com/pub/a/2001/04/04/trxml/index.html
/wg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.