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:
  #1  
Old July 15th, 2003, 03:12 PM
mjohn092 mjohn092 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 4 mjohn092 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Transforming XHTML with XSL

I'm in charge of developing some custom "xml/html components" for a project my team is working on. I would like to use my own custom XML tags along side of XHTML tags and then transform the custom tags to the appropriate javascript/xhtml. How can I make a xsl style sheet that leaves html elements alone but transforms my custom tags? Help would be greatly appreciated.
Thanks,
Mark

Reply With Quote
  #2  
Old July 16th, 2003, 04:27 AM
Wizard2003's Avatar
Wizard2003 Wizard2003 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 206 Wizard2003 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 h 29 m 24 sec
Reputation Power: 6
What is a wobbler? An exception???

Reply With Quote
  #3  
Old July 16th, 2003, 08:55 AM
mjohn092 mjohn092 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 4 mjohn092 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
So if you have javascript in an XHTML document it cannot be transformed? Thanks for the help, looks like XHTML is not the way to go in this case.
Thanks,
Mark

Reply With Quote
  #4  
Old July 16th, 2003, 11:16 AM
mjohn092 mjohn092 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 4 mjohn092 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
OK, so if I have an XHTML document that looks like this:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?xml-stylesheet type="text/xsl" href="page.xsl"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wd="http://webdev.bju.edu">
<head>
<title>Untitled Document</title>
<script language="javascript">
var foo = "foo" + "bar";
</script>
</head>

<body bgcolor="#FFFFFF">
<H1>test</H1>
<wd:autocomplete>
<wd: option>option 1</option>
<wd: option>option 2</option>
<wd: option>option 3</option>
<wd: option>option 4</option>
</wd:wd:autocomplete>
</body>
</html>

Can i transform this document with xsl to output the same XHTML plus the XHTML/javascript behind my custom tag (wd:autocomplete)?
Thanks for your help,
Mark

Reply With Quote
  #5  
Old July 16th, 2003, 11:42 AM
mjohn092 mjohn092 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 4 mjohn092 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I really appreciate your help, another question:
Is there anyway to make the xsl ignore characters in ceratain section like between the <script> tags? I thought this could be done with CDATA or somthing like that.
Thank you,
Mark

Reply With Quote
  #6  
Old July 16th, 2004, 06:17 AM
mortena mortena is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Location: Denmark
Posts: 6 mortena User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
What are you thanking for. I can't see you've (John) got any help at all. Is there any information I'm missing?

Reply With Quote
  #7  
Old July 17th, 2004, 02:14 PM
NotGoddess's Avatar
NotGoddess NotGoddess is offline
Kung-fu Kitty
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 350 NotGoddess User rank is Sergeant (500 - 2000 Reputation Level)NotGoddess User rank is Sergeant (500 - 2000 Reputation Level)NotGoddess User rank is Sergeant (500 - 2000 Reputation Level)NotGoddess User rank is Sergeant (500 - 2000 Reputation Level)NotGoddess User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 6 h 9 m 2 sec
Reputation Power: 10
Send a message via AIM to NotGoddess
A common annoyance of mine too
I am unsure of the cause in this case, but perhaps mjohn092 received his answers via email or some other private message.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Transforming XHTML with XSL


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 4 hosted by Hostway
Stay green...Green IT