|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Processing text in XSL
> I would like to transform an XML document with XSL but I > would like to change all text nodes and attribute values > before starting the XSL transformation. For example, I would > like to change all text nodes and attribute values to > uppercase. I know I can do this in the XSL sheet but is there > a way to do this at the SAX level? Yes - but as it doesn't involve XSLT it's a bit off topic for this list. You could do it in XSLT as a two-pass transform in the same stylesheet: perform an identity transform in a top-level variable that converts attribute values and text nodes to uppercase, and then in your root matching template apply-tempaltes on that variable. If you really want to do it at the SAX level, I would recommend looking up SAXTransformerFactory first and work from there. Basically you want to write an XMLFilter and chain it between an XMLReader and a TransformerHandler. cheers andrew
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








