Can GUID type attribute value be added to XML doc during XSLT transformation.

Can GUID type attribute value be added to XML doc during XSLT transformation.

Post by Farme » Fri, 12 Sep 2008 01:16:46


This is a multi-part message in MIME format.


Hi everyone,

I have many documents that contian document identification element like below. There is a schema that defines this element.
This schema is published to customers so that they can create content to be sent to us and imported into our system, with many more content elements.

One attribute docID is GUID type and is required. They have an original XML document of theirs, which ahs no such concept, and claim they have no way to produce/generate/add this docID GUID in XSLT transformation.
I have never used XSL myself so I am not sure.
I wonder if this is true.
Can anyone confirm or disprove this?
Any examples?

<Identity docID="57D4BCDB-146E-4641-8601-09C0E44FB68C" CreatedOn="2008-09-10T11:56:36.290Z" CreatedUsername="DOMAIN\user" SourceComputer="V241" SourceApplication="Microsoft SQL Server Management Studio - Query" Version="4.3.0">
<Config AutoImport="0" Action="ADD" />
</Identity>

Thank you so much!

Vladimir
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6001.18099" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Courier New" size=2>
<DIV>Hi everyone,</DIV>
<DIV> </DIV>
<DIV>I have many documents that contian document identification element like
below. There is a schema that defines this element.</DIV>
<DIV>This schema is published to customers so that they can create content to be
sent to us and imported into our system, with many more content elements.</DIV>
<DIV> </DIV>
<DIV>One attribute docID is GUID type and is required. They have an original XML
document of theirs, which ahs no such concept, and claim they have no way
to produce/generate/add this docID GUID in XSLT transformation.</DIV>
<DIV>I have never used XSL myself so I am not sure. </DIV>
<DIV>I wonder if this is true.</DIV>
<DIV>Can anyone confirm or disprove this?</DIV>
<DIV>Any examples?</DIV>
<DIV> </DIV>
<DIV><Identity docID="57D4BCDB-146E-4641-8601-09C0E44FB68C"
CreatedOn="2008-09-10T11:56:36.290Z" CreatedUsername="DOMAIN\user"
SourceComputer="V241" SourceApplication="Microsoft SQL Server Management Studio
- Query" Version="4.3.0"><BR>  <Config AutoImport="0" Action="ADD"
/><BR></Identity></DIV>
<DIV> </DIV>
<DIV>Thank you so much!</DIV>
<DIV> </DIV>
<DIV>Vladimir</DIV></FONT></DIV></BODY></HTML>