You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by "Dean H. Saxe" <de...@fullfrontalnerdity.com> on 2001/09/20 19:19:35 UTC

XSLT Processing of a node...twice

I'm curious about an issue which I have been thinking about for a few days 
now.  Here's the situation, I'm receiving XML files which need to be 
transformed to HTML and a number of other formats.  During the 
transformation I may need to do some user specific processing, such as 
changing the language of the text from English to French.  After spending 
some time reading various techniques to do so I have realized that I will 
need to process two transformations, first from XML -> HTML/XML with some 
additional tags identifying nodes which need translation, second processing 
the translatable nodes to the appropriate language.

My question is this: Can I process both transformations simultaneously?  I 
was thinking along the lines of a stylesheet that contains templates for 
matching text nodes which are potentially translatable, if a translation 
property is set the first template will call the translation template to do 
the text replacement before completing the first template.

Does this seem like a reasonable approach or should I stick with sequential 
transformations of the document?

Any help or advice is greatly appreciated!

-dhs


---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


RE: XSLT Processing of a node...twice

Posted by "Dean H. Saxe" <de...@fullfrontalnerdity.com>.
At 12:25 PM 9/20/01 -0700, you wrote:
>See http://xml.apache.org/xalan-j/samples.html#usexmlfilters
>This might be a technique to do what you need.

Gary,

Thanks for the heads up, I had missed that somehow.

So, now that I am looking at these SAX based transformers (previously I was 
looking at Crimson/Translets for similar functions) can someone tell me 
which parsers/transformers are currently supporting SAXSource and SAXResult?

-dhs



---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org


RE: XSLT Processing of a node...twice

Posted by Gary L Peskin <ga...@firstech.com>.
See http://xml.apache.org/xalan-j/samples.html#usexmlfilters 
This might be a technique to do what you need.

Gary

> -----Original Message-----
> From: Dean H. Saxe [mailto:dean@fullfrontalnerdity.com] 
> Sent: Thursday, September 20, 2001 10:20 AM
> To: general@xml.apache.org
> Subject: XSLT Processing of a node...twice
> 
> 
> I'm curious about an issue which I have been thinking about 
> for a few days 
> now.  Here's the situation, I'm receiving XML files which need to be 
> transformed to HTML and a number of other formats.  During the 
> transformation I may need to do some user specific 
> processing, such as 
> changing the language of the text from English to French.  
> After spending 
> some time reading various techniques to do so I have realized 
> that I will 
> need to process two transformations, first from XML -> 
> HTML/XML with some 
> additional tags identifying nodes which need translation, 
> second processing 
> the translatable nodes to the appropriate language.
> 
> My question is this: Can I process both transformations 
> simultaneously?  I 
> was thinking along the lines of a stylesheet that contains 
> templates for 
> matching text nodes which are potentially translatable, if a 
> translation 
> property is set the first template will call the translation 
> template to do 
> the text replacement before completing the first template.
> 
> Does this seem like a reasonable approach or should I stick 
> with sequential 
> transformations of the document?
> 
> Any help or advice is greatly appreciated!
> 
> -dhs
> 
> 
> ---------------------------------------------------------------------
> In case of troubles, e-mail:     webmaster@xml.apache.org
> To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
> For additional commands, e-mail: general-help@xml.apache.org
> 


---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org