|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
Hi,
I am writing an XSLT to transform an XML file to another XML file. The issue is that the transformed XML file needs to have tags like the following: /BIC/ZBROWSER /BIC/ZUSER etc. Something like this doesn't work: <xsl:text><BIC&sep;ZBROWSER></xsl:text> <xsl:value-of select="$UserAgent"/> <xsl:text><&sep;BIC&sep;ZBROWSER></xsl:text> Basically, how to write the XSLT for this kind of a thing. Thanks, Ranjan.
__________________
Ranjan Kumar |
|
#2
|
||||
|
||||
|
I am not a huge xml guy but you may take a look at:
Syntax <xsl:text disable-output-escaping="yes|no"> <!-- Content:#PCDATA --> </xsl:text> Attribute:disable-output-escaping Value: yes, no Optional. Description: "yes" indicates that special characters (like "<") should be output as is. "no" indicates that special characters (like "<") should be output as "<". Default is "no". *This attribute is not supported by Netscape 6 mr... |
|
#3
|
|||
|
|||
|
Thanks for that tip. I totally forgot about it. But, now the problem is that the XML document is not well formed.
I have to use a SOAP connection to send the XML document to another application. But, as the XML parser tries to parse this XML document it gives an error. Any clues. Thanks, Ranjan. |
|
#4
|
|||
|
|||
|
Well, have you tried just writing the tags into your xsl?
Code:
<BIC/ZBROWSER>
<xsl:value-of select="$UserAgent"/>
</BIC/ZBROWSER>
And if that doesn't work, may I suggest you consider changing your app to use something like: <bic> <zbrowser>...</zbrowser> <zuser>...</zuser> </bic> You can reconstuct the bic/zbrowser on each end if you really need to.
__________________
-james Last edited by bricker42 : July 2nd, 2003 at 01:00 PM. |
|
#5
|
|||
|
|||
|
I know that naming a tag <XXX/YYY> will never work. The reason is that the other application is developed by SAP and I have no control over that. What that App is looking for as tags is the technical names of the objects within SAP.
That also works fine as long as the objects are developed by SAP. But, if we create any objects the /BIC/ gets appended to the technical name so that these objects do not get affected by a future upgrade. Is there a way around this whole thing? Thanks, Ranjan. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > / in the XML Tag |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|