mete0r / pyhwp

.hwp file format v5 parser in python
http://pythonhosted.org/pyhwp
Other
250 stars 59 forks source link

produce XSLT-able XML #10

Open mete0r opened 13 years ago

mete0r commented 13 years ago

XSLT를 적용할 수 있는 수준의 XML 출력

mete0r commented 13 years ago

to-ODT XSL 변환 시 text:p를 위한 automatic-style을 쉽게 지정하기 위해, Paragraph마다 global-unique(document scope)한 paragraph-id를 부여하였음.

text:p 내부의 text:span의 경우도 automatic-style을 지정할 필요가 있으나, 모든 TextChunk에 global id를 부여하는 방식보다는 paragraph-id를 토대로 XSL에서 position()을 활용하여 처리하는 방식을 고안해야 할 것.

테이블이나 그림의 경우는 paragraph와 마찬가지로 global id를 부여할 수 있을 듯.