SunQuest
           XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old July 2nd, 2003, 11:37 AM
ranjankumar17 ranjankumar17 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 57 ranjankumar17 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Question / in the XML Tag

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

Reply With Quote
  #2  
Old July 2nd, 2003, 11:57 AM
mrusaw's Avatar
mrusaw mrusaw is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Dallas, Texas
Posts: 138 mrusaw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via AIM to mrusaw Send a message via Yahoo to mrusaw
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...

Reply With Quote
  #3  
Old July 2nd, 2003, 12:32 PM
ranjankumar17 ranjankumar17 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 57 ranjankumar17 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
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.

Reply With Quote
  #4  
Old July 2nd, 2003, 12:57 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
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.

Reply With Quote
  #5  
Old July 2nd, 2003, 05:04 PM
ranjankumar17 ranjankumar17 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 57 ranjankumar17 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > / in the XML Tag


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway