Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: tag!
Pages: [1] Print
Author Topic: tag!  (Read 271 times)
cavva
Newbie
*
Offline Offline

Posts: 6


View Profile
tag!
« on: September 22, 2005, 02:32:21 AM »

What can i do with a "tag!" ?

can i see it's attribitues or if is a tag opener (es: <body>) or a tag closer (es </body>)?

for examples:

Code:

myTAG: <table width="100%" align="left">

print myTAG/attributes/align; is this possible ?

Logged
CarlRead
Full Member
***
Offline Offline

Posts: 105


View Profile
tag!
« Reply #1 on: September 22, 2005, 03:05:51 AM »

As far as I know, there's no special support for handling the contents of tags.  Using PARSE on a tag might be of some use to you though. ie...
Code:
>> myTAG: <table width="100%" align="left">
== <table width="100%" align="left">
>> blk: parse/all mytag " ="
== ["table" "width" "100%" "align" "left"]
>> select blk "width"
== "100%"
>> select blk "align"
== "left"
Hope that gives you with some ideas.
Logged

- Carl Read
cavva
Newbie
*
Offline Offline

Posts: 6


View Profile
tag!
« Reply #2 on: September 22, 2005, 06:02:26 AM »

Quote

Hope that gives you with some ideas.

Yes, this is a good starting point....

now i can create ,for examples, a function "to-enhanced-tag" that return an obj with a series! for the attributes a some additional information...

thanks
Logged
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: tag!
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 03, 2008, 11:12:30 PM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2315 Posts in 597 Topics by 4205 Members
Latest Member: TimTearton

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc