| XML :: ¹®¹ý :: Çà¿î µû¿ÈÇ¥ ¼öÁý (¶Ç´Â UNIX-LIKE FORUNE ÄíÅ°) |
Áö±Ý ´Ù¿î·Îµå |
XML :: ¹®¹ý :: Çà¿î ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- MIT/X Consortium Lic...
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~shlomif/
XML :: ¹®¹ý :: Çà¿î ű×
XML :: ¹®¹ý :: Çà¿î ¼³¸í
µû¿ÈÇ¥¸¦ ¼öÁýÇϽʽÿÀ (¶Ç´Â À¯´Ð½º¿Í °°Àº Æ÷Ãá ÄíÅ°) XML :: Grammar :: FortuneÀº XML ¹®¹ýÀ» »ç¿ëÇÏ¿© ¸¹Àº dzºÎÇÑ ¸ÞŸ µ¥ÀÌÅ͸¦ »ç¿ëÇÏ¿© µû¿ÈÇ¥ (¶Ç´Â À¯´Ð½º °°Àº Æ÷Ãá ÄíÅ°)¸¦ ¼öÁýÇÏ°í XHTML ¹× PFRITEXT¸¦ »ý¼º ÇÒ ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù. XML :: ¹®¹ý :: Àç»ê; # ÆÄÀÏÀÇ À¯È¿¼ºÀ» °Ë»çÇÕ´Ï´Ù. MY $ Validator = XML :: Grammar :: Fortune-> New ({mode => "validate"}); # ¼º°ø½Ã 0À» ¹ÝȯÇÕ´Ï´Ù. ±×·¸Áö ¾ÊÀ¸¸é Á¾·á ÇÒ ¶§ 0À» ¹ÝȯÇÕ´Ï´Ù ($ validator-> ½ÇÇà ({input => "my-fortune-file.xml"})); # ÆÄÀÏÀ» XHTML·Î º¯È¯ÇÕ´Ï´Ù. MY $ º¯È¯±â = xml :: grammar :: Fortune-> new ({mode => "convert_to_html", output_mode => "filename"}) $ º¯È¯±â -> ½ÇÇà ({input => "my-fortune-file.xml" , Ãâ·Â => "resultant-file.xhtml",}) ¿ä±¸ »çÇ× : ¡¤ Perl.
XML :: ¹®¹ý :: Çà¿î °ü·Ã ¼ÒÇÁÆ®¿þ¾î