Это не тот же вопрос, который я задавал ранее (с ^^), так как это другой вопрос, в котором больше шума и ненужного раздела.
Во всяком случае, у меня есть текстовый файл, его содержимое:
#HEADER#
Version : 3
EOF : '^'
EOR : '~'
Property Count : 67
Generated Date : 10-March-2011 17:39
#DEFINITION#
AGENT_REF^ADDRESS_1^ADDRESS_2^ADDRESS_3^ADDRESS_4^TOWN^POSTCODE1^POSTCODE2^FEATURE1^FEATURE2^FEATURE3^FEATURE4^FEATURE5^FEATURE6^FEATURE7^FEATURE8^FEATURE9^FEATURE10^SUMMARY^DESCRIPTION^BRANCH_ID^STATUS_ID^BEDROOMS^PRICE^PRICE_QUALIFIER^PROP_SUB_ID^UPDATE_DATE^CREATE_DATE^DISPLAY_ADDRESS^PUBLISHED_FLAG^LET_DATE_AVAILABLE^LET_BOND^LET_TYPE_ID^LET_FURN_ID^LET_RENT_FREQUENCY^TENURE_TYPE_ID^TRANS_TYPE_ID^NEW_HOME_FLAG^MEDIA_IMAGE_00^MEDIA_IMAGE_TEXT_00^MEDIA_IMAGE_01^MEDIA_IMAGE_TEXT_01^MEDIA_IMAGE_02^MEDIA_IMAGE_TEXT_02^MEDIA_IMAGE_03^MEDIA_IMAGE_TEXT_03^MEDIA_IMAGE_04^MEDIA_IMAGE_TEXT_04^MEDIA_IMAGE_05^MEDIA_IMAGE_TEXT_05^MEDIA_IMAGE_06^MEDIA_IMAGE_TEXT_06^MEDIA_IMAGE_07^MEDIA_IMAGE_TEXT_07^MEDIA_IMAGE_08^MEDIA_IMAGE_TEXT_08^MEDIA_IMAGE_09^MEDIA_IMAGE_TEXT_09^MEDIA_IMAGE_10^MEDIA_IMAGE_TEXT_10^MEDIA_IMAGE_11^MEDIA_IMAGE_TEXT_11^MEDIA_IMAGE_12^MEDIA_IMAGE_TEXT_12^MEDIA_IMAGE_13^MEDIA_IMAGE_TEXT_13^MEDIA_IMAGE_14^MEDIA_IMAGE_TEXT_14^MEDIA_IMAGE_15^MEDIA_IMAGE_TEXT_15^MEDIA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#
12345_ALZ57065V^^Spacious 3 bedroom villa with pool in Vale da Telha^^^^8670-156^^^^^^^^^^^^3 bedrooms villa with pool located in picturesque urbanization of Vale da Telha, on a private corner plot. The villa benefits from all day sun shine. It has a mature settled garden with low maintenance and offers privacy for the villa. The villa comprises of living/dining room with wooden ceiling making the villa very welcoming. It has an open fireplace. The living room leads to the rustic yet modern kitchen, also on to the swimming pool area with BBQ and garden. Three bedrooms all with fitted wardrobes, (1 en suite) and wooden ceilings. All have good sun exposure, light and bright. The...^3 bedrooms villa with pool located in picturesque urbanization of Vale da Telha, on a private corner plot. The villa benefits from all day sun shine. It has a mature settled garden with low maintenance and offers privacy for the villa. The villa comprises of living/dining room with wooden ceiling making the villa very welcoming. It has an open fireplace. The living room leads to the rustic yet modern kitchen, also on to the swimming pool area with BBQ and garden. Three bedrooms all with fitted wardrobes, (1 en suite) and wooden ceilings. All have good sun exposure, light and bright. The detached garage has ample storage space in form of a mezzanine, plumbing for washing machine. Irrigation system. A/C that gives hot and cold air and dehumifies. Good investment for those looking for a permanent home.<br/><br/><br/>^12345^0^3^277000^0^^^^Spacious 3 bedroom villa with pool in Vale da Telha, Aljezur, 8670-156^1^^^^^^^1^N^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^~
12345_A184ALZ^^Lovely 2 bedroom apartment in Aljezur^^^Algarve^^^^^^^^^^^^^Excellent location for this well presented 2 bedroom apartment situated at the entrance of Aljezur. Within walking distance to all the attractions this portuguese village has to offer including many restaurants, shops and just few minutes drive to the fabulous Amoreira beach. The apartment comprises of a spacious lounge/dining room, 2 bedrooms with fitted wardrobes, fully fitted kitchen, bathroom and a possibility to occupy a 55 m2 area of the attic. Apart from the garage in cave there is a parking space provided which is an excellent asset in the summer months. This property is a perfect residental or holiday home as well having great rental potential.^Excellent location for this well presented 2 bedroom apartment situated at the entrance of Aljezur. Within walking distance to all the attractions this portuguese village has to offer including many restaurants, shops and just few minutes drive to the fabulous Amoreira beach. The apartment comprises of a spacious lounge/dining room, 2 bedrooms with fitted wardrobes, fully fitted kitchen, bathroom and a possibility to occupy a 55 m2 area of the attic. Apart from the garage in cave there is a parking space provided which is an excellent asset in the summer months. This property is a perfect residental or holiday home as well having great rental potential.<br/><br/><br/>^12345^0^2^140000^0^^^^Lovely 2 bedroom apartment in Aljezur, Aljezur, Algarve^1^^^^^^^1^N^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^~
Возможно ли использование только XSLT (!) Для создания XML-файла, такого как:
<POST>
<AGENT_REF>12345_ALZ57065V</AGENT_REF>
<ADDRESS_2>Spacious 3 bedroom villa with pool in Vale da Telha</ADDRESS_2>
...
</POST>
<POST>
<AGENT_REF>12345_A184ALZ</AGENT_REF>
...
</POST>
В основном, используя ключевые слова DEFINITION (разделенные на ^), чтобы получить значения из DATA, которые при разборе отображаются в том же порядке, что и данные в DEFINITION.
Спасибо