• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Add parameter to XML file

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How do I add a parameter to an XML file so that when I merge it with a stylesheet the parameter would replace the variable in the stylesheet. For example if the variable is baseURL I'd set it to www.yahoo.com in the XML file so that in the stylesheet where you see {$baseURL}/index.html would become www.yahoo.com/index.html
 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Depends what are you using to transform XML.

For example, if you are using javax.xml.transform.Transformer package, the object supports a method setParameter. Similarly, if this is on the client side, the method goes by the name addParameter.

Hope this helps !
 
reply
    Bookmark Topic Watch Topic
  • New Topic