|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
What is a wobbler? An exception???
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
What are you thanking for. I can't see you've (John) got any help at all. Is there any information I'm missing?
|
|
#7
|
||||
|
||||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Transforming XHTML with XSL |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|