H
Hemal Pandya
Hello,
I am hoping this is a simple question with a straightforward solution.
I do not understand xsl much, so I apologize in advance if I am asking
a stupid question.
Is it possible to write an xsl that changes some attributes when
applied to an xml document, while preserving rest of it. Is it possible
to write this xsl independently of the structure of the xml document
itself, and only depend on the expression that identifies the attribute
and the value to assign to this attribute ?
For example, I am looking for the xsl document that will do the
following when applies to any xml document:
1. Replace the value of attribute password anywhere it appears in the
xml document with the string '***'
2. Replace the value of attribute password in the element User as above
3. Replace the value of attribute password by prepending and appending
the string 'AAA' to it.
I will really appreciate if someone can provide a sample for this.
Thanks in advance,
- hemal
I am hoping this is a simple question with a straightforward solution.
I do not understand xsl much, so I apologize in advance if I am asking
a stupid question.
Is it possible to write an xsl that changes some attributes when
applied to an xml document, while preserving rest of it. Is it possible
to write this xsl independently of the structure of the xml document
itself, and only depend on the expression that identifies the attribute
and the value to assign to this attribute ?
For example, I am looking for the xsl document that will do the
following when applies to any xml document:
1. Replace the value of attribute password anywhere it appears in the
xml document with the string '***'
2. Replace the value of attribute password in the element User as above
3. Replace the value of attribute password by prepending and appending
the string 'AAA' to it.
I will really appreciate if someone can provide a sample for this.
Thanks in advance,
- hemal