Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

tye gave the technical reasons why that /doesn't/ work, and did a good job, but he rather skimmed over the logical reasons why it /shouldn't/ work.

Logicaly, readmore isn't an empty tag that has an effect at a single place in your XHTML. Instead, it's a block-level (?) tag, which has an opening and a closing, and hides it's interior unless you're looking directly at the node (IE it's the root node of the page you're looking at). For convience, we allow you to ommit the close tag, in which case it's taken to be at the end of your node.

The empty-tag form in XML (that is <tag />) is defined to be a shortcut for opening, and then immedatly closing again (<tag></tag>). Thus, it logicaly should hide nothing, that is, do nothing.

(Of course, this doesn't explain why things /are/ they way they are, it mearly explains why they should be the way they are. tye's explanition is, as usual, correct, I just wanted to give another viewpoint, and explain why this isn't mearly a WONTFIX bug, but not really a bug at all.)


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).


In reply to Re: XML-style readmore not being parsed by theorbtwo
in thread XML-style readmore not being parsed by premchai21

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-20 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found