xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary L Peskin" <ga...@firstech.com>
Subject RE: XSLT Processing of a node...twice
Date Thu, 20 Sep 2001 19:25:00 GMT
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


Mime
View raw message