Thanks, Roland.
dp
***********************************************************
On Jan 21, 2009, at 4:22 PM , Roland Küffner wrote:
Insert an replace all step at the beginning that puts all fields that
make up one <Object> into a single line (delimited by tabs or some
other character that does not occur otherwise in your source
document). Then use the Add/Remove Line Numbers step in your factory.
Use the numbers in further replace steps for your no-attribute.
This could look like the following:
Source list (guessing the structure)
Campus
SchoolID
Zip Code
Zip
...
Replace ^(.+)\r(.+) with \1\t\2 gives you
Campus SchoolID
Zip Code Zip
...
Add Line Numbers:
1 Campus SchoolID
2 Zip Code Zip
...
Replace ^(\d+)\s(.+?)\t(.+) with your XML-code
Regards
Roland
Am 21.01.2009 um 21:50 schrieb Doug Pinkerton:
I'm creating a text factory that will take a return-delimited series
of field names and surround them with the following markup. Everything
is working, except that I don't know how to add the sequential object
numbers. Can anyone suggest a solution, please?
Thanks,
dp
<ObjectData>
<Type>Fields</Type>
<Object no="1">
<Title>Campus</Title>
<Field>SchoolID</Field>
</Object>
<Object no="2">
<Title>Zip Code</Title>
<Field>Zip</Field>
</Object>
<Object no="3">
<Title>Ethnicity</Title>
<Field>Ethnicity</Field>
</Object>
<Object no="4">
<Title>Grade</Title>
<Field>Grade_Level</Field>
</Object>
<Object no="5">
<Title>Name</Title>
<Field>LastFirst</Field>
</Object>
<Object no="6">
<Title>Student Number</Title>
<Field>Student_Number</Field>
</Object>
</ObjectData>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "BBEdit Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a specific feature request or would like to report a suspected (or
confirmed) problem with the software, please email to "[email protected]"
rather than posting to the group.
-~----------~----~----~----~------~----~------~--~---